Skip to content

Commit

Permalink
Log the total number of tests and the random seed in the test runner
Browse files Browse the repository at this point in the history
This might make debugging intermittent failures a bit easier in the
future because it allows us to spot unexpected differences in the number
of tests being run and allows us to run the tests locally in the same
order in case of intermittent failures.
  • Loading branch information
timvandermeij committed Aug 1, 2020
1 parent 662ac55 commit b789a0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unit/testreporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ var TestReporter = function (browser) {

this.jasmineStarted = function (suiteInfo) {
this.runnerStartTime = this.now();
sendInfo("Started tests for " + browser + ".");

const total = suiteInfo.totalSpecsDefined;
const seed = suiteInfo.order.seed;
sendInfo(`Started ${total} tests for ${browser} with seed ${seed}.`);
};

this.suiteStarted = function (result) {
Expand Down

0 comments on commit b789a0e

Please sign in to comment.