Skip to content

Testing framework alternatives

Rick Thomas edited this page Feb 1, 2012 · 3 revisions

Node has plenty of testing alternatives. See the Node Modules wiki page here.

I had previously used nodeunit with sinonjs for mocking.

I looked at node-tap. It is a useful set of parts for test framework builders and is from a core Node developer, but isn't intended to have all the conveniences.

I chose to try BusterJS. It is by the author of sinonjs and of a book on Javascript TDD. While it is not finished, it usable now, and judging by these works it is likely to be comprehensive and well supported. It is fairly large and requires a build phase to install, so be sure to include it in package.json in devDependencies not dependencies.