Next: How to apply unit
Up: Unit Testing 101
Previous: Goals of unit testing?
Contents
Index
``This all sounds interesting'' you say ...``but what do you test?''
- Test everything that can possibly break.
- Don't put code in places that are hard to test (like servlets).
- Typically you can't test GUI's very easily.
(Therefore, do not put business logic in your GUI code.)
- Methods involving databases are difficult to test, but yes, you can create unit tests for database code.
Next: How to apply unit
Up: Unit Testing 101
Previous: Goals of unit testing?
Contents
Index