Skip to content

Unit and Behaviour Testing

ibrow edited this page Oct 21, 2011 · 1 revision

Advanced Unit Testing

Whilst Node.JS has some basic asserting functionality, it would be good to have something more rigorous. Caolan McMahon's Node Unit looks like it might do the job. However, it currently doesn't have code coverage (which I find invaluable when unit testing). Fortunately Arunoda Susiripala has forked it and added coverage. (Unfortunately at time of writing I can't get this to work, even though I have installed all the necessary)

Behaviour Driven Development

TDD is so 2006! BDD is the way forward!

Hmm, well possibly. I need to get my head around this concept. Vows looks like a promising BDD library and it also has code coverage built in.

Clone this wiki locally