Bugs We’ve Put in Your Ear

In this chapter, you learned the following:

  • Finding and fixing bugs early reduces overall effort.

  • When choosing test cases, you should consider size, dichotomies, boundary cases, and order.

  • To test your functions, you can write subclasses of unittest’s TestCase class. The advantages of using unittest include keeping the testing code separate from the code being tested, being able to keep the tests independent of one another, and being able to document each individual test case.

  • To debug software, you have to know what it is supposed to do and be able to repeat the failure. Simplifying the conditions that make the program fail is an effective way to narrow down the set of possible causes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.202.61