fix(testrunner): fix bad test counter (#3947)

This commit is contained in:
Andrey Lushnikov
2019-02-07 13:26:35 -08:00
committed by GitHub
parent addd7f4c6a
commit 9216056d12

View File

@@ -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) {