Apr 16, 2012

What type of test to write?

  • Write system tests for your views.
  • Write Selenium tests for Ajax, other JS/server interactions.
  • Write unit tests for everything else (not strict).
  • Test each case (code branch) where it occurs.
  • One assert/action per test case method.

No comments: