A flexible node code coverage library with multiple-process support.
Last updated 6 years ago by jrgm .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ass 
SYNC missed versions from official npm registry.

Build Status

![What kind of ass?](donkey.png)

Ass: Cross Process Code Coverage

ass is a small node.js code coverage library with the following features:

  • dynamic instrumentation: code is instrumented on the fly
  • minimal setup: get code coverage reports with minimal impact on your project
  • multiple process support: coverage data from multiple processes is aggregated into a single report
  • different report formats: basic reporting functionality built in


The philosophy behind ass is that implementing code coverage should be a trivial process. That no pre or post processing should be required. That the code coverage library should itself handle reporting (not require support from your test framework). And finally, that code coverage data should be programatically accessible.


To get started with ass, first install it:

npm install --save-dev ass

Then instrument processes that are run by your test harness by adding a single "stub" file (say your original server was in server.js, let's assume you name the stub stub.js):


Finally, you can enable testing in your test harness programatically:

var ass = require('ass').enable();

// .. run all of your tests, spawning instrumented processes'html', function(err, report) {
  require('fs').writeFileSync('coverage.html', report);


A full example of code coverage is available:

$ git clone git://
$ cd ass/example
$ npm install
$ npm test
$ open coverage.html




The infamous Zach Carter created our fantastic logo.

The design of the html reporter was lifted from TJ Holowaychuk's fantastic mocha test framework.

Current Tags

  • 0.0.6                                ...           latest (6 years ago)

5 Versions

  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 5
Last Month 17
Dependencies (5)
Dev Dependencies (4)
Dependents (0)

Copyright 2014 - 2017 © |