Skip to content

Commit

Permalink
node-SDK FAB-2258 restore HTML coverage report
Browse files Browse the repository at this point in the history
This change sets the reporter configuration for gulp task
test-headless to ['lcov', 'json', 'text', 'text-summary',
'cobertura'], generating both HTML and XML coverage reports.

Change-Id: Id08da35c54da51a97b50e36ad04989ccdd8b5f17
Signed-off-by: jjjjibm <[email protected]>
  • Loading branch information
jjjjibm committed Feb 16, 2017
1 parent 7702584 commit 59a96ce
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions build/tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ gulp.task('pre-test', function() {

gulp.task('test', ['lint', 'test-headless'], function() {
// use individual tests to control the sequence they get executed
// first run the ca-tests that tests all the member registration and
// enrollment scenarios (good and bad calls). then the rest of the
// tests will re-used the same key value store that has saved the
// user certificates so they can interact with the network
// first run the ca-tests that tests all the member registration
// and enrollment scenarios (good and bad calls). Then the rest
// of the tests will re-use the same key value store that has
// saved the user certificates so they can interact with the
// network
return gulp.src([
// 'test/integration/ca-tests.js',
'test/integration/chain-fabriccop-tests.js',
Expand All @@ -33,7 +34,8 @@ gulp.task('test', ['lint', 'test-headless'], function() {
});

gulp.task('test-headless', ['lint', 'pre-test'], function() {
// this is needed to avoid a problem in tape-promise with adding too many listeners
// this is needed to avoid a problem in tape-promise with adding
// too many listeners
// to the "unhandledRejection" event
process.setMaxListeners(0);

Expand All @@ -46,6 +48,7 @@ gulp.task('test-headless', ['lint', 'pre-test'], function() {
reporter: tapColorize()
}))
.pipe(istanbul.writeReports({
reporters: ['cobertura']
reporters: ['lcov', 'json', 'text',
'text-summary', 'cobertura']
}));
});

0 comments on commit 59a96ce

Please sign in to comment.