JSPM

  • Created
  • Published
  • Downloads 1825
  • Score
    100M100P100Q112396F
  • License MIT

Istanbul and JSCoverage-style instrumentation for CoffeeScript files.

Package Exports

  • coffee-coverage
  • coffee-coverage/lib/coffeeCoverage
  • coffee-coverage/lib/instrumentors/JSCoverage
  • coffee-coverage/lib/utils/helpers
  • coffee-coverage/register-istanbul

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (coffee-coverage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

semantic-release

Istanbul and JSCoverage-style instrumentation for CoffeeScript files.

Benbria CoffeeCoverage

Build Status Coverage Status Dependency Status devDependency Status

Instruments CoffeeScript files for code coverage. Compiles .coffee files to .js files, and adds JSCoverage or Istanbul style instrumentation for the original coffee script source.

NPM

Features

Quick Start

Assuming you have a folder named "test" full of mocha tests, which directly loads your .coffee files, then from your project's folder, run:

$ npm install --save-dev coffee-coverage
$ npm install --save-dev istanbul
$ mocha --recursive --compilers coffee:coffeescript/register --require coffee-coverage/register-istanbul test

$ ./node_modules/.bin/istanbul report

You should now have an Istanbul coverage report in ./coverage/lcov-report/index.html.

If this doesn't quite do what you're after, check out our tutorials below:

Tutorials:

Have coffee-coverage working in a setup not described above? Raise an issue and let us know how you're using coffee-coverage, so we can document it here.

What it Does

Benbria CoffeeCoverage is a tool for determining the coverage of your unit tests. It does this by instrumenting .coffee files to see how often each line, branch, or function is executed. CoffeeCoverage is capable of producing both Istanbul and JSCoverage style instrumentation.