Skip to content

Istanbul and JSCoverage-style instrumentation for CoffeeScript files.

License

Notifications You must be signed in to change notification settings

DanielXMoore/CoffeeCoverage

This branch is 24 commits ahead of benbria/coffee-coverage:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7b220d7 · Apr 13, 2022
Feb 21, 2022
Dec 14, 2018
Feb 21, 2022
Apr 13, 2022
Feb 25, 2022
Oct 30, 2015
Feb 21, 2022
Feb 21, 2022
Apr 13, 2022
Feb 21, 2022
Feb 21, 2022
Apr 13, 2022
May 1, 2015
May 1, 2015
Feb 21, 2022

Repository files navigation

Istanbul and JSCoverage-style instrumentation for CoffeeScript files.

CoffeeCoverage

Coverage 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 @danielx/coffeecoverage
npm install --save-dev istanbul
mocha --recursive --compilers coffee:coffeescript/register --require @danielx/coffeecoverage/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 CoffeeCoverage working in a setup not described above? Raise an issue and let us know how you're using CoffeeCoverage, so we can document it here.

What it Does

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.

About

Istanbul and JSCoverage-style instrumentation for CoffeeScript files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 99.0%
  • JavaScript 1.0%