Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

TDD - is it possible?

$
0
0
Hello all,

I've been poking around QUnit + FuncUnit and would like to know if it is possible to TDD within the architecture of JavascriptMVC.

Testing models seems simple enough (with the Cookbook app) but would I need to thoroughly test controllers aswell? I've been advised to only test user journeys but I have the opinion that all code should be tested be it controller or model(or view?).

If I was to TDD would this be correct:

  1. Write model tests.
  2. Write model code until all tests pass.
  3. Write dom fixtures.
  4. Write controller tests.
  5. Write controller code until all tests pass.
??

If anyone has any links or examples of TDD with JavascriptMVC I would be very greatful!


Many thanks
Hank

Viewing all articles
Browse latest Browse all 3491

Trending Articles