-
Book Overview & Buying
-
Table Of Contents
Python Automation Cookbook - Third Edition
By :
When the code and the complexity of your software grow, generating tests to ensure your program does what it is supposed to do is the best tool to provide you with a firm footing over rocky terrain.
Tests are, in essence, double-checking that the code is valid and doing what it is supposed to do. This is a deceptively simple statement. In practice, testing can be difficult.
Mastering the ability to test is a difficult task and is worth a book or two. The tasks introduced in this chapter move from business-oriented tasks to software engineering tasks, which is a different approach. The objective of this chapter is to present some practical aspects of testing to introduce the subject.
We have a great help in GenAI tools to generate and maintain tests. GenAI will quickly generate tests to check that the behavior of the code follows the expectations. But those expectations can be wrong! It is good to verify that tests generated by AI are actually checking the...