Creating Automated Tests with unittest
With the size and complexity of your application rapidly expanding, you've become nervous about making changes. What if you break something? How will you know? You can, of course, run through all the features of the program manually with various input and watch for errors, but this approach gets harder and more time consuming as you add more features. What you really need is a fast and reliable way to make sure your program is working properly whenever you make a code change.
Fortunately, there is a way: automated testing. In this chapter, you'll learn about automated testing in the following topics:
- In Automated testing basics, you'll discover the fundamentals of automated testing in Python using
unittest
. - In Testing Tkinter code, we'll discuss specific strategies for testing Tkinter applications.
- In Writing tests for our application, we'll apply this knowledge to the ABQ Data Entry application...