November 2003
Intermediate to advanced
1488 pages
36h 35m
English
In this section, we list some practical considerations to keep in mind when testing and debugging applications.
Now that we've seen examples of some of the more popular unit testing tools out there, here are a few tips that enable these tools to yield their maximum benefit:
Write unit tests early. Some people even say that the test cases for a class should be written before the class itself. When a component of a system is designed, the desired behavior of the component is encoded into a series of unit tests. The implementation of the component is complete when all the tests run successfully.
When writing the tests first isn't possible, extra care should be taken to prevent writing tests that simply make ...
Read now
Unlock full access