From b789a0e2160a4b59ff4afd500c5313398338b481 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sat, 1 Aug 2020 21:06:42 +0200 Subject: [PATCH] Log the total number of tests and the random seed in the test runner 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. --- test/unit/testreporter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/unit/testreporter.js b/test/unit/testreporter.js index 41502d6d32d34..64691c3b43711 100644 --- a/test/unit/testreporter.js +++ b/test/unit/testreporter.js @@ -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) {