Skip to content

Commit

Permalink
fix travis-ci - only display errors and global summary + fail if errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bjouhier committed Jan 28, 2016
1 parent 46316ec commit 356af0c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ testrunner.run({
code: fsp.join(__dirname, 'loader.js'),
tests: tests,
maxBlockDuration: 30 * 1000,
}, function(err) {
log: {
errors: true,
globalSummary: true,
}
}, function(err, stats) {
if (err) throw err;
if (stats.failed) process.exit(1);
});

0 comments on commit 356af0c

Please sign in to comment.