3 ms·
The basic unit test suite for Backbone is here: http://documentcloud.github.com/backbone/test/test.html http://documentcloud.github.com/backbone/test/test.html
by jashkenas 16y ago
The basic unit test suite for Backbone is here:
http://documentcloud.github.com/backbone/test/test.html http://documentcloud.github.com/backbone/test/test.html
But I'm afraid to say that we don't actually test the JavaScript in the DocumentCloud workspace very much. It's something that I'd love to do more of, but almost all of the bugs that actually occur in production aren't things that unit tests would catch -- unexpected responses from remote Ajax calls, CSS glitches in IE, etc.
That said, having nice standalone models is a great start for testable code.