4 ms·
I'm looking to branch out after having used qUnit for the last year or so. Looks like this framework does mocking REALLY well (which I feel like I can't do well
by barnaby 15y ago
I'm looking to branch out after having used qUnit for the last year or so. Looks like this framework does mocking REALLY well (which I feel like I can't do well in qUnit). But it's v8 specific, so I can't test if Internet Exploder won't screw up my script.
Would anybody recommend any other unit-test frameworks for mocking stuff out?
- lappet 15y agoYou can look at jasmine + sinon http://tinnedfruit.com/2011/03/03/testing-backbone-apps-with-jasmine-sinon.html http://tinnedfruit.com/2011/03/03/testing-backbone-apps-with...
- ch0wn 15y agoThere's also a fantastic tool for running those tests headlessly with jasmine-headless-webkit[0]. The benefit is that you can, if you so desire, test against the DOM as there is a complete browser in the background. [0] http://johnbintz.github.com/jasmine-headless-webkit/ http://johnbintz.github.com/jasmine-headless-webkit/
- lappet 15y agoAh, interesting. If headless is not what you want, js-test-driver[1] looks promising. It has adapters for jasmine too. 1. http://code.google.com/p/js-test-driver/ http://code.google.com/p/js-test-driver/