Saturday, May 17, 2014

Unit Testing - Cheat Sheet

This page has been written just to summarize the key statements around unit testing learnt from the book - Effective Unit Testing - a guide for Java developers.

It should act as a refresher (at least for me) whenever the page is skimmed through.

Tests help us,
  • catch mistakes
  • shape our design to actual use
  • avoid gold-plating by being explicit about what the required behavior is.
The biggest value of writing a test lies not in the resulting test case but what we learning from writing it.

No comments:

Post a Comment