Originally made for Node.js, deadunit is a JavaScript unit testing library for Node.js and the browser. Some of its unique attributes:
- Easy learning curve
- Can output test results on the command line (colored or plain-text) or as HTML
- It prints out the actual lines of code where your assertions are, so your output makes sense even if you don't spend a lot of time writing test commentary
- It has a simple
count
assertion that makes dealing with expected exceptions and asynchronous asserts easy
- it prints out exception and any attached data they have
- it'll let you know if your code is hanging (something you don't want, but usually goes unnoticed)
- Has an event driven API enables streaming test results across a network, or in any way you want.
- Supports testing with node-fibers