mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(testrunner): fix bad test counter (#3947)
This commit is contained in:
parent
addd7f4c6a
commit
9216056d12
@ -42,6 +42,7 @@ class Reporter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onStarted(runnableTests) {
|
_onStarted(runnableTests) {
|
||||||
|
this._testCounter = 0;
|
||||||
this._timestamp = Date.now();
|
this._timestamp = Date.now();
|
||||||
const allTests = this._runner.tests();
|
const allTests = this._runner.tests();
|
||||||
if (allTests.length === runnableTests.length)
|
if (allTests.length === runnableTests.length)
|
||||||
@ -180,7 +181,6 @@ class Reporter {
|
|||||||
|
|
||||||
_onTestStarted(test, workerId) {
|
_onTestStarted(test, workerId) {
|
||||||
this._workersState.set(workerId, {test, isRunning: true});
|
this._workersState.set(workerId, {test, isRunning: true});
|
||||||
this._testCounter = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_onTestFinished(test, workerId) {
|
_onTestFinished(test, workerId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user