From 9216056d12c70d81fb81001e564bba2f9cb67b8b Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 7 Feb 2019 13:26:35 -0800 Subject: [PATCH] fix(testrunner): fix bad test counter (#3947) --- utils/testrunner/Reporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/testrunner/Reporter.js b/utils/testrunner/Reporter.js index fcfc6d96..9edacdd2 100644 --- a/utils/testrunner/Reporter.js +++ b/utils/testrunner/Reporter.js @@ -42,6 +42,7 @@ class Reporter { } _onStarted(runnableTests) { + this._testCounter = 0; this._timestamp = Date.now(); const allTests = this._runner.tests(); if (allTests.length === runnableTests.length) @@ -180,7 +181,6 @@ class Reporter { _onTestStarted(test, workerId) { this._workersState.set(workerId, {test, isRunning: true}); - this._testCounter = 0; } _onTestFinished(test, workerId) {