Skip to content

Releases: SBoudrias/gulp-istanbul

v0.9.0

07 May 16:03
Compare
Choose a tag to compare

New enforceThreshold() method to fail the build if a defined coverage threshold is not reached.

v0.8.1

05 Apr 06:41
Compare
Choose a tag to compare

Fix bug occuring with the latest Istanbul release (0.3.13). See #55

v0.8.0

05 Apr 06:36
Compare
Choose a tag to compare

You can now use custom reporters. (istanbul.writeReports())

v0.7.0

24 Mar 18:04
Compare
Choose a tag to compare

hookRequire() now take an optional option object.

v0.6.0

01 Feb 02:23
Compare
Choose a tag to compare

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

02 Dec 17:12
Compare
Choose a tag to compare

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

20 Nov 08:05
Compare
Choose a tag to compare

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

10 Sep 06:51
Compare
Choose a tag to compare

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.

v0.2.2

13 Aug 06:19
Compare
Choose a tag to compare

Fix bug in writeReports that throwed when no file had been covered. This allow to only rerun builds for changed files.

0.2.0

11 May 05:58
Compare
Choose a tag to compare
  • Allow specifying wanted reports to create with an option
  • Allow specifying a custom global coverage variable to use
  • New summarizeCoverage helper method to get the coverage stats object

Big thanks to @harlanji and @robrich for the work on this release!