Skip to content

Commit

Permalink
Remove double-counted files in istanbul config
Browse files Browse the repository at this point in the history
Many files under hfc-cop are copies of hfc, they shouldn't be
counted in istanbul coverage because hfc-cop only uses them
very lightly as dependencies. all of them get more fully
exercised in tests targeting hfc.

Change-Id: I823ea7bb8ec1ff4e18b7141ed70cea5dbbf506d6
Signed-off-by: Jim Zhang <[email protected]>
  • Loading branch information
jimthematrix committed Jan 17, 2017
1 parent 1dcc5fb commit 570e4bf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build/tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ var tapColorize = require('tap-colorize');
var istanbul = require('gulp-istanbul');

gulp.task('pre-test', function() {
return gulp.src(['node_modules/hfc/lib/**/*.js','node_modules/hfc-cop/lib/**/*.js'])
.pipe(istanbul())
.pipe(istanbul.hookRequire());
return gulp.src([
'node_modules/hfc/lib/**/*.js',
'node_modules/hfc-cop/lib/FabricCOPImpl.js'])
.pipe(istanbul())
.pipe(istanbul.hookRequire());
});

gulp.task('test', ['pre-test'], function() {
Expand Down

0 comments on commit 570e4bf

Please sign in to comment.