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:
- Write model tests.
- Write model code until all tests pass.
- Write dom fixtures.
- Write controller tests.
- 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