Skip to content

Commit

Permalink
Use more verbose test reporter
Browse files Browse the repository at this point in the history
This new reporter gives a better idea which tests are currently running,
how long individual tests take and during which tests output occurred.

All of this information is especially helpful when tests are run in CI.
  • Loading branch information
raphinesse committed Aug 4, 2018
1 parent c8cb3c5 commit 270310e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -51,6 +51,7 @@
"globby": "^8.0.1",
"istanbul": "^0.4.5",
"jasmine": "^3.0.1",
"jasmine-spec-reporter": "^4.2.1",
"rewire": "^4.0.1"
},
"scripts": {
Expand Down
14 changes: 14 additions & 0 deletions spec/helper.js
Expand Up @@ -17,3 +17,17 @@
under the License.
*/
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;

const SpecReporter = require('jasmine-spec-reporter').SpecReporter;

jasmine.getEnv().clearReporters();
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayPending: true,
displayDuration: true
},
summary: {
displayDuration: true,
displayStacktrace: true
}
}));

0 comments on commit 270310e

Please sign in to comment.