Releases: SBoudrias/gulp-istanbul
v0.9.0
v0.8.1
v0.8.0
v0.7.0
v0.6.0
Add option to define a custom Instrumenter
so you can instrument es6, jsx or any other language features.
var isparta = require('isparta');
var istanbul = require('gulp-istanbul');
gulp.src('lib/**.js')
.pipe(istanbul({
instrumenter: isparta.Instrumenter
}));
v0.5.0
Extract istanbul.hookRequire()
into it's own method.
This method is an output method and won't passthrough the files. This fix issue where the stream high water mark prevented more than 16 files to be processed unless you'd pipe the istanbul()
stream to another output stream.
If you're testing on Node, then you'll need to add istanbul.hookRequire()
right after calling istanbul()
v0.4.0
New features
Cache clearing
Now every instrumented file will be cleared from require.cache
so the next time they're required, we'll use the instrumented version.
This fix issues with people requiring modules to be covered inside their Gulpfile (ideally don't do this to yourself - keep it simple, but the edge case is fixed).
Syntax error detection
Sometime you may pass an invalid JS to istanbul. This resulted in parsing errors that were hard to debug because it didn't logged the path of the currently parsed file.
Now the file path is logged along with the syntax error.
v0.3.0
New features
Allow to include non-required files in the coverage report
This will allow files without test to be considered in the coverage
report.
Big thanks at @robatron!
Bug fixes
- We don't delete the global state anymore, it should now work better when using
gulp.watch
(Thanks @robrich) - Fix bug where buffer support wasn't correctly detected (Thanks @golyshevd)
Maintenance
Now using Istanbul 0.3 series.