gulp-coffee-coverage
gulp plugin for coffee-coverage. Compiles CoffeeScript into Javascript with coverage logic.
Usage
var coverage = ; gulp;
Error handling
gulp-coffee-coverage will emit an error for cases such as invalid coffeescript syntax. If uncaught, the error will crash gulp.
You will need to attach a listener (i.e. .on('error')
) for the error event emitted by gulp-coffee-coverage:
var coverageStream = ; // Attach listenercoverageStream;
In addition, you may utilize gulp-util's logging function:
var gutil = ; // ... var coverageStream = ; // Attach listenercoverageStream;
Since .on(...)
returns this
, you can compact it as inline code:
gulp // ...
Options
name | type | description |
---|---|---|
bare | Boolean | Do not wrap files in an anonymous function |
initfile | String | Generate an coverage initiation file |
initfile | Object Literal | Generate an coverage initiation file. Options are used to initialise the vinyl-fs file added to the stream |
instrumentor | String | Instrumentor to use with coffee-coverage. Either 'istanbul' or 'jscoverage' |
Installation
npm install --save-dev gulp-coffee-coverage