Node JavaScript Test Coverage
Today I released Expresso 0.4.0, a TDD framework for node which uses my node-jscoverage project to instrument your library, providing optional test coverage reporting when the —cov flag is used.
Expresso
If you dont know anything about expresso, it executes tests in parallel, so even ~1000 assertions against live http servers can execute in less than a second. By doing so we unfortunately suffer slightly in terms of reporting, although expresso is entirely CI friendly, and reports both sync, async, and uncaught exceptions in a clean manor.
Coverage Reporting
Below is a test coverage example, currently I report the following:
- LOC: lines of code
- SLOC: source lines of code (aka no comments etc)
- source reports, showing the line numbers as well as coverage hits

More Information
Into writing tests for your node JavaScript? prefer insanely fast execution of async TDD? check out expresso! now! do it! before I go drink