Socket
Socket
Sign inDemoInstall

coffee-coverage

Package Overview
Dependencies
10
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    coffee-coverage

Istanbul and JSCoverage-style instrumentation for CoffeeScript files.


Version published
Weekly downloads
1.6K
increased by16.56%
Maintainers
1
Install size
1.87 MB
Created
Weekly downloads
 

Changelog

Source

v0.5.0

  • Added support for Istanbul. (thanks to Carsten Klein for some help and suggestions.)
    • Added support for pragmas.
    • Dropped support for node.js v0.6.x.
    • coffee-coverage/register now instruments all js files in the CWD by default (instead of only files which get loaded.) You can disable this behavior by setting the COFFEECOV_INIT_ALL environment variable to 'false'.

Breaking changes:

  • CoverageInstrumentor.instrumentCoffee() now expects an absolute path for a file. It will probably continue to work, even if you pass a relative path, though.

Readme

Source

Istanbul and JSCoverage-style instrumentation for CoffeeScript files.

Benbria CoffeeCoverage

Codeship Build Status 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 coffee-coverage
npm install --save-dev istanbul
mocha --recursive \
      --compilers coffee:coffee-script/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.

Keywords

FAQs

Last updated on 04 May 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc