From 570e4bf4543fd733404513488f847d3ddde5ce24 Mon Sep 17 00:00:00 2001 From: Jim Zhang Date: Tue, 17 Jan 2017 14:48:17 -0500 Subject: [PATCH] Remove double-counted files in istanbul config 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 --- build/tasks/test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build/tasks/test.js b/build/tasks/test.js index 83bc7edcb1..1273bd7268 100644 --- a/build/tasks/test.js +++ b/build/tasks/test.js @@ -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() {