Skip to content

Commit 5f3572e

Browse files
DavertMikMykhailo Bodnarchuk
and
Mykhailo Bodnarchuk
authored
ported #2387 (#2393)
Co-authored-by: Mykhailo Bodnarchuk <mykhailo.bodnarchuk@Mykhailos-MacBook-Pro.local>
1 parent 28813b3 commit 5f3572e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/workers.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ class Workers extends EventEmitter {
171171
passes: 0,
172172
failures: 0,
173173
tests: 0,
174+
pending: 0,
174175
};
175176
this.testGroups = [];
176177

@@ -319,6 +320,10 @@ class Workers extends EventEmitter {
319320
this._updateFinishedTests(repackTest(message.data));
320321
this.emit(event.test.passed, repackTest(message.data));
321322
break;
323+
case event.test.skipped:
324+
this._updateFinishedTests(repackTest(message.data));
325+
this.emit(event.test.skipped, repackTest(message.data));
326+
break;
322327
case event.test.finished: this.emit(event.test.finished, repackTest(message.data)); break;
323328
case event.all.after: this._appendStats(message.data); break;
324329
}
@@ -345,6 +350,7 @@ class Workers extends EventEmitter {
345350
this.stats.passes += newStats.passes;
346351
this.stats.failures += newStats.failures;
347352
this.stats.tests += newStats.tests;
353+
this.stats.pending += newStats.pending;
348354
}
349355

350356
_updateFinishedTests(test) {
@@ -361,7 +367,7 @@ class Workers extends EventEmitter {
361367
this.stats.duration = this.stats.end - this.stats.start;
362368
output.print();
363369
if (this.stats.tests === 0 || (this.stats.passes && !this.errors.length)) {
364-
output.result(this.stats.passes, this.stats.failures, 0, `${this.stats.duration || 0 / 1000}s`);
370+
output.result(this.stats.passes, this.stats.failures, this.stats.pending, `${this.stats.duration || 0 / 1000}s`);
365371
}
366372
if (this.stats.failures) {
367373
output.print();

0 commit comments

Comments
 (0)