What are the alternatives for testing commonjs modules?

What javascript testing frameworks there support testing commonjs modules?

+4
source share
4 answers

I used expresso from Visionmedia in node.js

https://github.com/visionmedia/expresso

It extends the basic functions of assert http://nodejs.org/docs/v0.4.7/api/assert.html

So, the default style is:

exports['test String#length'] = function() { assert.equal(6, 'foobar'.length); }; 

can do DRYer

 exports['test String#length'] = function(){ assert.length(6, 'foobar'); }; 
+1
source
0
source

In my limited experience, Zombie.js is very good

0
source

Must propagate standard statements using some BDD styles:

https://github.com/visionmedia/should.js

0
source

All Articles