@locustjs/test 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1 -1
- package/index.esm.js +2 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -383,7 +383,7 @@ class TestRunner {
|
|
|
383
383
|
for (let r of this.results) {
|
|
384
384
|
time += r.time;
|
|
385
385
|
}
|
|
386
|
-
const text = 'Finished.' + '\n' + (this.failed > 0 ? `\x1b[${ConsoleColors.ForeColor.Red}m ${this.failed} tests failed` : '0 tests failed' + ConsoleColors.Modifier.Reset
|
|
386
|
+
const text = 'Finished.' + '\n' + (this.failed > 0 ? `\x1b[${ConsoleColors.ForeColor.Red}m ${this.failed} tests failed` : '0 tests failed') + ConsoleColors.Modifier.Reset + ', ' + (this.passed > 0 ? `\x1b[${ConsoleColors.ForeColor.Green}m ${this.passed} tests passed` : '0 tests passed') + ConsoleColors.Modifier.Reset + '\n' + `Tests: ${this.passed + this.failed}` + '\n' + `Time: ${time / 1000} sec` + '\n';
|
|
387
387
|
console.log(text);
|
|
388
388
|
}
|
|
389
389
|
}
|
package/index.esm.js
CHANGED
|
@@ -275,9 +275,9 @@ class TestRunner {
|
|
|
275
275
|
|
|
276
276
|
const text = 'Finished.' +
|
|
277
277
|
'\n' +
|
|
278
|
-
(this.failed > 0 ? `\x1b[${ConsoleColors.ForeColor.Red}m ${this.failed} tests failed` : '0 tests failed' + ConsoleColors.Modifier.Reset
|
|
278
|
+
(this.failed > 0 ? `\x1b[${ConsoleColors.ForeColor.Red}m ${this.failed} tests failed` : '0 tests failed') + ConsoleColors.Modifier.Reset +
|
|
279
279
|
', ' +
|
|
280
|
-
(this.passed > 0 ? `\x1b[${ConsoleColors.ForeColor.Green}m ${this.passed} tests passed` : '0 tests passed' + ConsoleColors.Modifier.Reset
|
|
280
|
+
(this.passed > 0 ? `\x1b[${ConsoleColors.ForeColor.Green}m ${this.passed} tests passed` : '0 tests passed') + ConsoleColors.Modifier.Reset +
|
|
281
281
|
'\n' +
|
|
282
282
|
`Tests: ${this.passed + this.failed}` +
|
|
283
283
|
'\n' +
|