“Identifying a user story requires defining done. This is the criteria for the test.” A word of caution here: User stories are usually written at a much courser granularity than you want your unit tests to be in. Traditionally user stories turn into…
Here is a presentation I used to give on unit testing with Java. It is a little of date. Cancel that, it is a lot out of date! You can tell because it was written when we called TDD test first design. I offer it up because going through it you might…
And another useful technique is the testing subclass. Subclass an untestable class and add methods and assessors to help you test it. Don’t deploy the testing subclass or allow it to be used as part of production code.
For databases there are 3 bas…
Unit tests for legacy code.
Write the tests before you make a change. Write tests only for the section you are going to change. The rest of the system will get a turn later. If you follow this plan the hot spots, code that changes the most, will be…