An asynchronous unit testing framework in under 40 lines of code.
MicroTest is an asynchronous testing framework built for Node.js. It's under 40 lines of code, and has no dependencies.
Create a folder called test/ in the root of your project directory.
Within this folder create .js testing files that look like this:
var equal = require'assert'equal;exportstests =equaltrue true prefix + " that's weird, true should really be equal to true.";setTimeoutfinished;2000;;
Just run the command micro-test from the root directory of your Node.js project.
Copyright (c) 2012 Attachments.me. See LICENSE.txt for further details.