Skip to content

Commit

Permalink
[FABN-599 ] enhance gulp mocha tasks
Browse files Browse the repository at this point in the history
- add new task entry for mocha tests (all) with code coverage report

Change-Id: Ieacd2c5398a7b6538bddc0ab3f87cbd5a8e06d1e
Signed-off-by: nkl199@yahoo.co.uk <nkl199@yahoo.co.uk>
  • Loading branch information
nklincoln committed Oct 9, 2018
1 parent 55f8ccc commit 4579e7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ gulp.task('test-headless', shell.task(
'./node_modules/nyc/bin/nyc.js gulp run-test-headless'
));

gulp.task('test-mocha', ['mocha-fabric-client'],
gulp.task('test-mocha', shell.task(
'./node_modules/nyc/bin/nyc.js gulp run-test-mocha'
));

gulp.task('run-test-mocha', ['mocha-fabric-client', 'mocha-fabric-network'],
() => {
return gulp.src(['./fabric-ca-client/test/**/*.js'], { read: false })
.pipe(mocha({ reporter: 'list', exit: true }));
Expand Down

0 comments on commit 4579e7e

Please sign in to comment.