4 ms·
Would also love to see how you folks are unit testing MVC at DocumentCloud
by akshayr 16y ago
Would also love to see how you folks are unit testing MVC at DocumentCloud
- jashkenas 16y agoThe 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.