From 993bb9039d6d46ca51f76d6b99129d66ca4a6434 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Sat, 25 Apr 2020 14:08:23 +0200 Subject: [PATCH] Remove test slowness output checks from reporter tests --- lib/reporters/verbose.js | 8 +-- test-tap/fixture/report/regular/slow.js | 5 -- test-tap/helper/report.js | 2 +- test-tap/reporters/mini.regular.v10.log | 41 +++++++--------- test-tap/reporters/mini.regular.v12.log | 41 +++++++--------- test-tap/reporters/mini.regular.v13.log | 41 +++++++--------- test-tap/reporters/mini.regular.v14.log | 41 +++++++--------- test-tap/reporters/tap.regular.v10.log | 57 ++++++++++------------ test-tap/reporters/tap.regular.v12.log | 57 ++++++++++------------ test-tap/reporters/tap.regular.v13.log | 57 ++++++++++------------ test-tap/reporters/tap.regular.v14.log | 57 ++++++++++------------ test-tap/reporters/verbose.js | 2 +- test-tap/reporters/verbose.regular.v10.log | 2 - test-tap/reporters/verbose.regular.v12.log | 2 - test-tap/reporters/verbose.regular.v13.log | 4 +- test-tap/reporters/verbose.regular.v14.log | 2 - test-tap/reporters/verbose.watch.v12.log | 2 +- 17 files changed, 189 insertions(+), 232 deletions(-) delete mode 100644 test-tap/fixture/report/regular/slow.js diff --git a/lib/reporters/verbose.js b/lib/reporters/verbose.js index 1b88617ba..f6ad4af3b 100644 --- a/lib/reporters/verbose.js +++ b/lib/reporters/verbose.js @@ -20,6 +20,10 @@ const whileCorked = require('./while-corked'); const nodeInternals = require('stack-utils').nodeInternals(); +// Display duration only over a threshold. The environment variable is checked +// to reduce variability within AVA's own test suite. Don't use it. +const durationThreshold = Math.max(100, Number.parseInt(process.env.AVA_VERBOSE_DURATION_THRESHOLD, 10) || 0); + class LineWriter extends stream.Writable { constructor(dest) { super(); @@ -322,9 +326,7 @@ class VerboseReporter { } else if (evt.knownFailing) { this.lineWriter.writeLine(`${colors.error(figures.tick)} ${colors.error(this.prefixTitle(evt.testFile, evt.title))}`); } else { - // Display duration only over a threshold - const threshold = 100; - const duration = evt.duration > threshold ? colors.duration(' (' + prettyMs(evt.duration) + ')') : ''; + const duration = evt.duration > durationThreshold ? colors.duration(' (' + prettyMs(evt.duration) + ')') : ''; this.lineWriter.writeLine(`${colors.pass(figures.tick)} ${this.prefixTitle(evt.testFile, evt.title)}${duration}`); } diff --git a/test-tap/fixture/report/regular/slow.js b/test-tap/fixture/report/regular/slow.js deleted file mode 100644 index 02c8ff2c3..000000000 --- a/test-tap/fixture/report/regular/slow.js +++ /dev/null @@ -1,5 +0,0 @@ -const test = require('../../../..'); - -test.cb('slow', t => { - setTimeout(t.end, 200); -}); diff --git a/test-tap/helper/report.js b/test-tap/helper/report.js index 7b79c733a..aa22c7654 100644 --- a/test-tap/helper/report.js +++ b/test-tap/helper/report.js @@ -21,6 +21,7 @@ const createApi = options => { ...options, env: { ...options.env, + AVA_VERBOSE_DURATION_THRESHOLD: String(60 * 1000), NODE_NO_WARNINGS: '1' } }); @@ -61,7 +62,6 @@ exports.sanitizers = { experimentalWarning: string => string.replace(/^\(node:\d+\) ExperimentalWarning.+\n/g, ''), lineEndings: string => replaceString(string, '\r\n', '\n'), posix: string => replaceString(string, '\\', '/'), - slow: string => string.replace(/(?slow.+?)\(\d+m?s\)/g, '$ (000ms)'), version: string => replaceString(string, `v${pkg.version}`, 'v1.0.0-beta.5.1') }; diff --git a/test-tap/reporters/mini.regular.v10.log b/test-tap/reporters/mini.regular.v10.log index 973f9a818..73e6eabbe 100644 --- a/test-tap/reporters/mini.regular.v10.log +++ b/test-tap/reporters/mini.regular.v10.log @@ -12,28 +12,23 @@ 1 passed 1 test failed---tty-stream-chunk-separator ---tty-stream-chunk-separator -* slow › slow - - 2 passed - 1 test failed---tty-stream-chunk-separator ----tty-stream-chunk-separator * test › passes - 3 passed + 2 passed 1 test failed 1 skipped 1 todo---tty-stream-chunk-separator ---tty-stream-chunk-separator * test › fails - 3 passed + 2 passed 2 tests failed 1 skipped 1 todo---tty-stream-chunk-separator ---tty-stream-chunk-separator * test › known failure - 3 passed + 2 passed 1 known failure 2 tests failed 1 skipped @@ -41,7 +36,7 @@ ---tty-stream-chunk-separator * test › no longer failing - 3 passed + 2 passed 1 known failure 3 tests failed 1 skipped @@ -49,7 +44,7 @@ ---tty-stream-chunk-separator * test › logs - 3 passed + 2 passed 1 known failure 4 tests failed 1 skipped @@ -57,7 +52,7 @@ ---tty-stream-chunk-separator * test › formatted - 3 passed + 2 passed 1 known failure 5 tests failed 1 skipped @@ -65,7 +60,7 @@ ---tty-stream-chunk-separator * test › power-assert - 3 passed + 2 passed 1 known failure 6 tests failed 1 skipped @@ -73,7 +68,7 @@ ---tty-stream-chunk-separator * test › bad throws - 3 passed + 2 passed 1 known failure 7 tests failed 1 skipped @@ -81,7 +76,7 @@ ---tty-stream-chunk-separator * test › bad notThrows - 3 passed + 2 passed 1 known failure 8 tests failed 1 skipped @@ -89,7 +84,7 @@ ---tty-stream-chunk-separator * test › implementation throws non-error - 3 passed + 2 passed 1 known failure 9 tests failed 1 skipped @@ -97,7 +92,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throws - 3 passed + 2 passed 1 known failure 10 tests failed 1 skipped @@ -105,7 +100,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › notThrows - 3 passed + 2 passed 1 known failure 11 tests failed 1 skipped @@ -113,7 +108,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › notThrowsAsync - 3 passed + 2 passed 1 known failure 12 tests failed 1 skipped @@ -121,7 +116,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throwsAsync - 3 passed + 2 passed 1 known failure 13 tests failed 1 skipped @@ -129,7 +124,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throwsAsync different error - 3 passed + 2 passed 1 known failure 14 tests failed 1 skipped @@ -137,7 +132,7 @@ ---tty-stream-chunk-separator * uncaught-exception › passes - 4 passed + 3 passed 1 known failure 14 tests failed 1 skipped @@ -145,7 +140,7 @@ ---tty-stream-chunk-separator * unhandled-rejection › passes - 5 passed + 4 passed 1 known failure 14 tests failed 1 skipped @@ -153,7 +148,7 @@ ---tty-stream-chunk-separator * unhandled-rejection › unhandled non-error rejection - 6 passed + 5 passed 1 known failure 14 tests failed 1 skipped diff --git a/test-tap/reporters/mini.regular.v12.log b/test-tap/reporters/mini.regular.v12.log index 4329aa238..a52d375a9 100644 --- a/test-tap/reporters/mini.regular.v12.log +++ b/test-tap/reporters/mini.regular.v12.log @@ -12,28 +12,23 @@ 1 passed 1 test failed---tty-stream-chunk-separator ---tty-stream-chunk-separator -* slow › slow - - 2 passed - 1 test failed---tty-stream-chunk-separator ----tty-stream-chunk-separator * test › passes - 3 passed + 2 passed 1 test failed 1 skipped 1 todo---tty-stream-chunk-separator ---tty-stream-chunk-separator * test › fails - 3 passed + 2 passed 2 tests failed 1 skipped 1 todo---tty-stream-chunk-separator ---tty-stream-chunk-separator * test › known failure - 3 passed + 2 passed 1 known failure 2 tests failed 1 skipped @@ -41,7 +36,7 @@ ---tty-stream-chunk-separator * test › no longer failing - 3 passed + 2 passed 1 known failure 3 tests failed 1 skipped @@ -49,7 +44,7 @@ ---tty-stream-chunk-separator * test › logs - 3 passed + 2 passed 1 known failure 4 tests failed 1 skipped @@ -57,7 +52,7 @@ ---tty-stream-chunk-separator * test › formatted - 3 passed + 2 passed 1 known failure 5 tests failed 1 skipped @@ -65,7 +60,7 @@ ---tty-stream-chunk-separator * test › power-assert - 3 passed + 2 passed 1 known failure 6 tests failed 1 skipped @@ -73,7 +68,7 @@ ---tty-stream-chunk-separator * test › bad throws - 3 passed + 2 passed 1 known failure 7 tests failed 1 skipped @@ -81,7 +76,7 @@ ---tty-stream-chunk-separator * test › bad notThrows - 3 passed + 2 passed 1 known failure 8 tests failed 1 skipped @@ -89,7 +84,7 @@ ---tty-stream-chunk-separator * test › implementation throws non-error - 3 passed + 2 passed 1 known failure 9 tests failed 1 skipped @@ -97,7 +92,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throws - 3 passed + 2 passed 1 known failure 10 tests failed 1 skipped @@ -105,7 +100,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › notThrows - 3 passed + 2 passed 1 known failure 11 tests failed 1 skipped @@ -113,7 +108,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › notThrowsAsync - 3 passed + 2 passed 1 known failure 12 tests failed 1 skipped @@ -121,7 +116,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throwsAsync - 3 passed + 2 passed 1 known failure 13 tests failed 1 skipped @@ -129,7 +124,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throwsAsync different error - 3 passed + 2 passed 1 known failure 14 tests failed 1 skipped @@ -137,7 +132,7 @@ ---tty-stream-chunk-separator * uncaught-exception › passes - 4 passed + 3 passed 1 known failure 14 tests failed 1 skipped @@ -145,7 +140,7 @@ ---tty-stream-chunk-separator * unhandled-rejection › passes - 5 passed + 4 passed 1 known failure 14 tests failed 1 skipped @@ -153,7 +148,7 @@ ---tty-stream-chunk-separator * unhandled-rejection › unhandled non-error rejection - 6 passed + 5 passed 1 known failure 14 tests failed 1 skipped diff --git a/test-tap/reporters/mini.regular.v13.log b/test-tap/reporters/mini.regular.v13.log index 4329aa238..a52d375a9 100644 --- a/test-tap/reporters/mini.regular.v13.log +++ b/test-tap/reporters/mini.regular.v13.log @@ -12,28 +12,23 @@ 1 passed 1 test failed---tty-stream-chunk-separator ---tty-stream-chunk-separator -* slow › slow - - 2 passed - 1 test failed---tty-stream-chunk-separator ----tty-stream-chunk-separator * test › passes - 3 passed + 2 passed 1 test failed 1 skipped 1 todo---tty-stream-chunk-separator ---tty-stream-chunk-separator * test › fails - 3 passed + 2 passed 2 tests failed 1 skipped 1 todo---tty-stream-chunk-separator ---tty-stream-chunk-separator * test › known failure - 3 passed + 2 passed 1 known failure 2 tests failed 1 skipped @@ -41,7 +36,7 @@ ---tty-stream-chunk-separator * test › no longer failing - 3 passed + 2 passed 1 known failure 3 tests failed 1 skipped @@ -49,7 +44,7 @@ ---tty-stream-chunk-separator * test › logs - 3 passed + 2 passed 1 known failure 4 tests failed 1 skipped @@ -57,7 +52,7 @@ ---tty-stream-chunk-separator * test › formatted - 3 passed + 2 passed 1 known failure 5 tests failed 1 skipped @@ -65,7 +60,7 @@ ---tty-stream-chunk-separator * test › power-assert - 3 passed + 2 passed 1 known failure 6 tests failed 1 skipped @@ -73,7 +68,7 @@ ---tty-stream-chunk-separator * test › bad throws - 3 passed + 2 passed 1 known failure 7 tests failed 1 skipped @@ -81,7 +76,7 @@ ---tty-stream-chunk-separator * test › bad notThrows - 3 passed + 2 passed 1 known failure 8 tests failed 1 skipped @@ -89,7 +84,7 @@ ---tty-stream-chunk-separator * test › implementation throws non-error - 3 passed + 2 passed 1 known failure 9 tests failed 1 skipped @@ -97,7 +92,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throws - 3 passed + 2 passed 1 known failure 10 tests failed 1 skipped @@ -105,7 +100,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › notThrows - 3 passed + 2 passed 1 known failure 11 tests failed 1 skipped @@ -113,7 +108,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › notThrowsAsync - 3 passed + 2 passed 1 known failure 12 tests failed 1 skipped @@ -121,7 +116,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throwsAsync - 3 passed + 2 passed 1 known failure 13 tests failed 1 skipped @@ -129,7 +124,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throwsAsync different error - 3 passed + 2 passed 1 known failure 14 tests failed 1 skipped @@ -137,7 +132,7 @@ ---tty-stream-chunk-separator * uncaught-exception › passes - 4 passed + 3 passed 1 known failure 14 tests failed 1 skipped @@ -145,7 +140,7 @@ ---tty-stream-chunk-separator * unhandled-rejection › passes - 5 passed + 4 passed 1 known failure 14 tests failed 1 skipped @@ -153,7 +148,7 @@ ---tty-stream-chunk-separator * unhandled-rejection › unhandled non-error rejection - 6 passed + 5 passed 1 known failure 14 tests failed 1 skipped diff --git a/test-tap/reporters/mini.regular.v14.log b/test-tap/reporters/mini.regular.v14.log index 4329aa238..a52d375a9 100644 --- a/test-tap/reporters/mini.regular.v14.log +++ b/test-tap/reporters/mini.regular.v14.log @@ -12,28 +12,23 @@ 1 passed 1 test failed---tty-stream-chunk-separator ---tty-stream-chunk-separator -* slow › slow - - 2 passed - 1 test failed---tty-stream-chunk-separator ----tty-stream-chunk-separator * test › passes - 3 passed + 2 passed 1 test failed 1 skipped 1 todo---tty-stream-chunk-separator ---tty-stream-chunk-separator * test › fails - 3 passed + 2 passed 2 tests failed 1 skipped 1 todo---tty-stream-chunk-separator ---tty-stream-chunk-separator * test › known failure - 3 passed + 2 passed 1 known failure 2 tests failed 1 skipped @@ -41,7 +36,7 @@ ---tty-stream-chunk-separator * test › no longer failing - 3 passed + 2 passed 1 known failure 3 tests failed 1 skipped @@ -49,7 +44,7 @@ ---tty-stream-chunk-separator * test › logs - 3 passed + 2 passed 1 known failure 4 tests failed 1 skipped @@ -57,7 +52,7 @@ ---tty-stream-chunk-separator * test › formatted - 3 passed + 2 passed 1 known failure 5 tests failed 1 skipped @@ -65,7 +60,7 @@ ---tty-stream-chunk-separator * test › power-assert - 3 passed + 2 passed 1 known failure 6 tests failed 1 skipped @@ -73,7 +68,7 @@ ---tty-stream-chunk-separator * test › bad throws - 3 passed + 2 passed 1 known failure 7 tests failed 1 skipped @@ -81,7 +76,7 @@ ---tty-stream-chunk-separator * test › bad notThrows - 3 passed + 2 passed 1 known failure 8 tests failed 1 skipped @@ -89,7 +84,7 @@ ---tty-stream-chunk-separator * test › implementation throws non-error - 3 passed + 2 passed 1 known failure 9 tests failed 1 skipped @@ -97,7 +92,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throws - 3 passed + 2 passed 1 known failure 10 tests failed 1 skipped @@ -105,7 +100,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › notThrows - 3 passed + 2 passed 1 known failure 11 tests failed 1 skipped @@ -113,7 +108,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › notThrowsAsync - 3 passed + 2 passed 1 known failure 12 tests failed 1 skipped @@ -121,7 +116,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throwsAsync - 3 passed + 2 passed 1 known failure 13 tests failed 1 skipped @@ -129,7 +124,7 @@ ---tty-stream-chunk-separator * traces-in-t-throws › throwsAsync different error - 3 passed + 2 passed 1 known failure 14 tests failed 1 skipped @@ -137,7 +132,7 @@ ---tty-stream-chunk-separator * uncaught-exception › passes - 4 passed + 3 passed 1 known failure 14 tests failed 1 skipped @@ -145,7 +140,7 @@ ---tty-stream-chunk-separator * unhandled-rejection › passes - 5 passed + 4 passed 1 known failure 14 tests failed 1 skipped @@ -153,7 +148,7 @@ ---tty-stream-chunk-separator * unhandled-rejection › unhandled non-error rejection - 6 passed + 5 passed 1 known failure 14 tests failed 1 skipped diff --git a/test-tap/reporters/tap.regular.v10.log b/test-tap/reporters/tap.regular.v10.log index 2f5e85438..94639dd60 100644 --- a/test-tap/reporters/tap.regular.v10.log +++ b/test-tap/reporters/tap.regular.v10.log @@ -55,20 +55,17 @@ not ok 4 - output-in-hook › failing test ---tty-stream-chunk-separator # afterAlways ---tty-stream-chunk-separator -# slow › slow -ok 5 - slow › slow ----tty-stream-chunk-separator # test › skip -ok 6 - test › skip # SKIP +ok 5 - test › skip # SKIP ---tty-stream-chunk-separator # test › todo -not ok 7 - test › todo # TODO +not ok 6 - test › todo # TODO ---tty-stream-chunk-separator # test › passes -ok 8 - test › passes +ok 7 - test › passes ---tty-stream-chunk-separator # test › fails -not ok 9 - test › fails +not ok 8 - test › fails --- name: AssertionError message: Test failed via `t.fail()` @@ -79,10 +76,10 @@ not ok 9 - test › fails ... ---tty-stream-chunk-separator # test › known failure -ok 10 - test › known failure +ok 9 - test › known failure ---tty-stream-chunk-separator # test › no longer failing -not ok 11 - test › no longer failing +not ok 10 - test › no longer failing --- name: Error message: >- @@ -92,7 +89,7 @@ not ok 11 - test › no longer failing ... ---tty-stream-chunk-separator # test › logs -not ok 12 - test › logs +not ok 11 - test › logs * hello * world --- @@ -105,7 +102,7 @@ not ok 12 - test › logs ... ---tty-stream-chunk-separator # test › formatted -not ok 13 - test › formatted +not ok 12 - test › formatted --- name: AssertionError assertion: deepEqual @@ -119,7 +116,7 @@ not ok 13 - test › formatted ... ---tty-stream-chunk-separator # test › power-assert -not ok 14 - test › power-assert +not ok 13 - test › power-assert --- name: AssertionError assertion: assert @@ -132,7 +129,7 @@ not ok 14 - test › power-assert ... ---tty-stream-chunk-separator # test › bad throws -not ok 15 - test › bad throws +not ok 14 - test › bad throws --- name: AssertionError message: Improper usage of `t.throws()` detected @@ -149,7 +146,7 @@ not ok 15 - test › bad throws ... ---tty-stream-chunk-separator # test › bad notThrows -not ok 16 - test › bad notThrows +not ok 15 - test › bad notThrows --- name: AssertionError message: Improper usage of `t.notThrows()` detected @@ -166,7 +163,7 @@ not ok 16 - test › bad notThrows ... ---tty-stream-chunk-separator # test › implementation throws non-error -not ok 17 - test › implementation throws non-error +not ok 16 - test › implementation throws non-error --- name: AssertionError message: Error thrown in test @@ -176,7 +173,7 @@ not ok 17 - test › implementation throws non-error ... ---tty-stream-chunk-separator # traces-in-t-throws › throws -not ok 18 - traces-in-t-throws › throws +not ok 17 - traces-in-t-throws › throws --- name: AssertionError assertion: throws @@ -194,7 +191,7 @@ not ok 18 - traces-in-t-throws › throws ... ---tty-stream-chunk-separator # traces-in-t-throws › notThrows -not ok 19 - traces-in-t-throws › notThrows +not ok 18 - traces-in-t-throws › notThrows --- name: AssertionError assertion: notThrows @@ -211,7 +208,7 @@ not ok 19 - traces-in-t-throws › notThrows ... ---tty-stream-chunk-separator # traces-in-t-throws › notThrowsAsync -not ok 20 - traces-in-t-throws › notThrowsAsync +not ok 19 - traces-in-t-throws › notThrowsAsync --- name: AssertionError assertion: notThrowsAsync @@ -228,7 +225,7 @@ not ok 20 - traces-in-t-throws › notThrowsAsync ... ---tty-stream-chunk-separator # traces-in-t-throws › throwsAsync -not ok 21 - traces-in-t-throws › throwsAsync +not ok 20 - traces-in-t-throws › throwsAsync --- name: AssertionError assertion: throwsAsync @@ -245,7 +242,7 @@ not ok 21 - traces-in-t-throws › throwsAsync ... ---tty-stream-chunk-separator # traces-in-t-throws › throwsAsync different error -not ok 22 - traces-in-t-throws › throwsAsync different error +not ok 21 - traces-in-t-throws › throwsAsync different error --- name: AssertionError assertion: throwsAsync @@ -265,10 +262,10 @@ not ok 22 - traces-in-t-throws › throwsAsync different erro ... ---tty-stream-chunk-separator # uncaught-exception › passes -ok 23 - uncaught-exception › passes +ok 22 - uncaught-exception › passes ---tty-stream-chunk-separator # Error: Can’t catch me -not ok 24 - Error: Can’t catch me +not ok 23 - Error: Can’t catch me --- name: Error message: Can’t catch me @@ -276,16 +273,16 @@ not ok 24 - Error: Can’t catch me ... ---tty-stream-chunk-separator # uncaught-exception.js exited with a non-zero exit code: 1 -not ok 25 - uncaught-exception.js exited with a non-zero exit code: 1 +not ok 24 - uncaught-exception.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator # unhandled-rejection › passes -ok 26 - unhandled-rejection › passes +ok 25 - unhandled-rejection › passes ---tty-stream-chunk-separator # unhandled-rejection › unhandled non-error rejection -ok 27 - unhandled-rejection › unhandled non-error rejection +ok 26 - unhandled-rejection › unhandled non-error rejection ---tty-stream-chunk-separator # Error: Can’t catch me -not ok 28 - Error: Can’t catch me +not ok 27 - Error: Can’t catch me --- name: Error message: Can’t catch me @@ -295,16 +292,16 @@ not ok 28 - Error: Can’t catch me ... ---tty-stream-chunk-separator # unhandled-rejection -not ok 29 - unhandled-rejection +not ok 28 - unhandled-rejection --- message: Non-error object formatted: 'null' ... ---tty-stream-chunk-separator -1..23 -# tests 22 -# pass 7 +1..22 +# tests 21 +# pass 6 # skip 1 # fail 21 diff --git a/test-tap/reporters/tap.regular.v12.log b/test-tap/reporters/tap.regular.v12.log index 6d5c17e7f..5a4961709 100644 --- a/test-tap/reporters/tap.regular.v12.log +++ b/test-tap/reporters/tap.regular.v12.log @@ -53,20 +53,17 @@ not ok 4 - output-in-hook › failing test ---tty-stream-chunk-separator # afterAlways ---tty-stream-chunk-separator -# slow › slow -ok 5 - slow › slow ----tty-stream-chunk-separator # test › skip -ok 6 - test › skip # SKIP +ok 5 - test › skip # SKIP ---tty-stream-chunk-separator # test › todo -not ok 7 - test › todo # TODO +not ok 6 - test › todo # TODO ---tty-stream-chunk-separator # test › passes -ok 8 - test › passes +ok 7 - test › passes ---tty-stream-chunk-separator # test › fails -not ok 9 - test › fails +not ok 8 - test › fails --- name: AssertionError message: Test failed via `t.fail()` @@ -75,10 +72,10 @@ not ok 9 - test › fails ... ---tty-stream-chunk-separator # test › known failure -ok 10 - test › known failure +ok 9 - test › known failure ---tty-stream-chunk-separator # test › no longer failing -not ok 11 - test › no longer failing +not ok 10 - test › no longer failing --- name: Error message: >- @@ -88,7 +85,7 @@ not ok 11 - test › no longer failing ... ---tty-stream-chunk-separator # test › logs -not ok 12 - test › logs +not ok 11 - test › logs * hello * world --- @@ -99,7 +96,7 @@ not ok 12 - test › logs ... ---tty-stream-chunk-separator # test › formatted -not ok 13 - test › formatted +not ok 12 - test › formatted --- name: AssertionError assertion: deepEqual @@ -111,7 +108,7 @@ not ok 13 - test › formatted ... ---tty-stream-chunk-separator # test › power-assert -not ok 14 - test › power-assert +not ok 13 - test › power-assert --- name: AssertionError assertion: assert @@ -122,7 +119,7 @@ not ok 14 - test › power-assert ... ---tty-stream-chunk-separator # test › bad throws -not ok 15 - test › bad throws +not ok 14 - test › bad throws --- name: AssertionError message: Improper usage of `t.throws()` detected @@ -138,7 +135,7 @@ not ok 15 - test › bad throws ... ---tty-stream-chunk-separator # test › bad notThrows -not ok 16 - test › bad notThrows +not ok 15 - test › bad notThrows --- name: AssertionError message: Improper usage of `t.notThrows()` detected @@ -154,7 +151,7 @@ not ok 16 - test › bad notThrows ... ---tty-stream-chunk-separator # test › implementation throws non-error -not ok 17 - test › implementation throws non-error +not ok 16 - test › implementation throws non-error --- name: AssertionError message: Error thrown in test @@ -164,7 +161,7 @@ not ok 17 - test › implementation throws non-error ... ---tty-stream-chunk-separator # traces-in-t-throws › throws -not ok 18 - traces-in-t-throws › throws +not ok 17 - traces-in-t-throws › throws --- name: AssertionError assertion: throws @@ -184,7 +181,7 @@ not ok 18 - traces-in-t-throws › throws ... ---tty-stream-chunk-separator # traces-in-t-throws › notThrows -not ok 19 - traces-in-t-throws › notThrows +not ok 18 - traces-in-t-throws › notThrows --- name: AssertionError assertion: notThrows @@ -200,7 +197,7 @@ not ok 19 - traces-in-t-throws › notThrows ... ---tty-stream-chunk-separator # traces-in-t-throws › notThrowsAsync -not ok 20 - traces-in-t-throws › notThrowsAsync +not ok 19 - traces-in-t-throws › notThrowsAsync --- name: AssertionError assertion: notThrowsAsync @@ -216,7 +213,7 @@ not ok 20 - traces-in-t-throws › notThrowsAsync ... ---tty-stream-chunk-separator # traces-in-t-throws › throwsAsync -not ok 21 - traces-in-t-throws › throwsAsync +not ok 20 - traces-in-t-throws › throwsAsync --- name: AssertionError assertion: throwsAsync @@ -235,7 +232,7 @@ not ok 21 - traces-in-t-throws › throwsAsync ... ---tty-stream-chunk-separator # traces-in-t-throws › throwsAsync different error -not ok 22 - traces-in-t-throws › throwsAsync different error +not ok 21 - traces-in-t-throws › throwsAsync different error --- name: AssertionError assertion: throwsAsync @@ -253,10 +250,10 @@ not ok 22 - traces-in-t-throws › throwsAsync different erro ... ---tty-stream-chunk-separator # uncaught-exception › passes -ok 23 - uncaught-exception › passes +ok 22 - uncaught-exception › passes ---tty-stream-chunk-separator # Error: Can’t catch me -not ok 24 - Error: Can’t catch me +not ok 23 - Error: Can’t catch me --- name: Error message: Can’t catch me @@ -267,16 +264,16 @@ not ok 24 - Error: Can’t catch me ... ---tty-stream-chunk-separator # uncaught-exception.js exited with a non-zero exit code: 1 -not ok 25 - uncaught-exception.js exited with a non-zero exit code: 1 +not ok 24 - uncaught-exception.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator # unhandled-rejection › passes -ok 26 - unhandled-rejection › passes +ok 25 - unhandled-rejection › passes ---tty-stream-chunk-separator # unhandled-rejection › unhandled non-error rejection -ok 27 - unhandled-rejection › unhandled non-error rejection +ok 26 - unhandled-rejection › unhandled non-error rejection ---tty-stream-chunk-separator # Error: Can’t catch me -not ok 28 - Error: Can’t catch me +not ok 27 - Error: Can’t catch me --- name: Error message: Can’t catch me @@ -284,16 +281,16 @@ not ok 28 - Error: Can’t catch me ... ---tty-stream-chunk-separator # unhandled-rejection -not ok 29 - unhandled-rejection +not ok 28 - unhandled-rejection --- message: Non-error object formatted: 'null' ... ---tty-stream-chunk-separator -1..23 -# tests 22 -# pass 7 +1..22 +# tests 21 +# pass 6 # skip 1 # fail 21 diff --git a/test-tap/reporters/tap.regular.v13.log b/test-tap/reporters/tap.regular.v13.log index 6d5c17e7f..5a4961709 100644 --- a/test-tap/reporters/tap.regular.v13.log +++ b/test-tap/reporters/tap.regular.v13.log @@ -53,20 +53,17 @@ not ok 4 - output-in-hook › failing test ---tty-stream-chunk-separator # afterAlways ---tty-stream-chunk-separator -# slow › slow -ok 5 - slow › slow ----tty-stream-chunk-separator # test › skip -ok 6 - test › skip # SKIP +ok 5 - test › skip # SKIP ---tty-stream-chunk-separator # test › todo -not ok 7 - test › todo # TODO +not ok 6 - test › todo # TODO ---tty-stream-chunk-separator # test › passes -ok 8 - test › passes +ok 7 - test › passes ---tty-stream-chunk-separator # test › fails -not ok 9 - test › fails +not ok 8 - test › fails --- name: AssertionError message: Test failed via `t.fail()` @@ -75,10 +72,10 @@ not ok 9 - test › fails ... ---tty-stream-chunk-separator # test › known failure -ok 10 - test › known failure +ok 9 - test › known failure ---tty-stream-chunk-separator # test › no longer failing -not ok 11 - test › no longer failing +not ok 10 - test › no longer failing --- name: Error message: >- @@ -88,7 +85,7 @@ not ok 11 - test › no longer failing ... ---tty-stream-chunk-separator # test › logs -not ok 12 - test › logs +not ok 11 - test › logs * hello * world --- @@ -99,7 +96,7 @@ not ok 12 - test › logs ... ---tty-stream-chunk-separator # test › formatted -not ok 13 - test › formatted +not ok 12 - test › formatted --- name: AssertionError assertion: deepEqual @@ -111,7 +108,7 @@ not ok 13 - test › formatted ... ---tty-stream-chunk-separator # test › power-assert -not ok 14 - test › power-assert +not ok 13 - test › power-assert --- name: AssertionError assertion: assert @@ -122,7 +119,7 @@ not ok 14 - test › power-assert ... ---tty-stream-chunk-separator # test › bad throws -not ok 15 - test › bad throws +not ok 14 - test › bad throws --- name: AssertionError message: Improper usage of `t.throws()` detected @@ -138,7 +135,7 @@ not ok 15 - test › bad throws ... ---tty-stream-chunk-separator # test › bad notThrows -not ok 16 - test › bad notThrows +not ok 15 - test › bad notThrows --- name: AssertionError message: Improper usage of `t.notThrows()` detected @@ -154,7 +151,7 @@ not ok 16 - test › bad notThrows ... ---tty-stream-chunk-separator # test › implementation throws non-error -not ok 17 - test › implementation throws non-error +not ok 16 - test › implementation throws non-error --- name: AssertionError message: Error thrown in test @@ -164,7 +161,7 @@ not ok 17 - test › implementation throws non-error ... ---tty-stream-chunk-separator # traces-in-t-throws › throws -not ok 18 - traces-in-t-throws › throws +not ok 17 - traces-in-t-throws › throws --- name: AssertionError assertion: throws @@ -184,7 +181,7 @@ not ok 18 - traces-in-t-throws › throws ... ---tty-stream-chunk-separator # traces-in-t-throws › notThrows -not ok 19 - traces-in-t-throws › notThrows +not ok 18 - traces-in-t-throws › notThrows --- name: AssertionError assertion: notThrows @@ -200,7 +197,7 @@ not ok 19 - traces-in-t-throws › notThrows ... ---tty-stream-chunk-separator # traces-in-t-throws › notThrowsAsync -not ok 20 - traces-in-t-throws › notThrowsAsync +not ok 19 - traces-in-t-throws › notThrowsAsync --- name: AssertionError assertion: notThrowsAsync @@ -216,7 +213,7 @@ not ok 20 - traces-in-t-throws › notThrowsAsync ... ---tty-stream-chunk-separator # traces-in-t-throws › throwsAsync -not ok 21 - traces-in-t-throws › throwsAsync +not ok 20 - traces-in-t-throws › throwsAsync --- name: AssertionError assertion: throwsAsync @@ -235,7 +232,7 @@ not ok 21 - traces-in-t-throws › throwsAsync ... ---tty-stream-chunk-separator # traces-in-t-throws › throwsAsync different error -not ok 22 - traces-in-t-throws › throwsAsync different error +not ok 21 - traces-in-t-throws › throwsAsync different error --- name: AssertionError assertion: throwsAsync @@ -253,10 +250,10 @@ not ok 22 - traces-in-t-throws › throwsAsync different erro ... ---tty-stream-chunk-separator # uncaught-exception › passes -ok 23 - uncaught-exception › passes +ok 22 - uncaught-exception › passes ---tty-stream-chunk-separator # Error: Can’t catch me -not ok 24 - Error: Can’t catch me +not ok 23 - Error: Can’t catch me --- name: Error message: Can’t catch me @@ -267,16 +264,16 @@ not ok 24 - Error: Can’t catch me ... ---tty-stream-chunk-separator # uncaught-exception.js exited with a non-zero exit code: 1 -not ok 25 - uncaught-exception.js exited with a non-zero exit code: 1 +not ok 24 - uncaught-exception.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator # unhandled-rejection › passes -ok 26 - unhandled-rejection › passes +ok 25 - unhandled-rejection › passes ---tty-stream-chunk-separator # unhandled-rejection › unhandled non-error rejection -ok 27 - unhandled-rejection › unhandled non-error rejection +ok 26 - unhandled-rejection › unhandled non-error rejection ---tty-stream-chunk-separator # Error: Can’t catch me -not ok 28 - Error: Can’t catch me +not ok 27 - Error: Can’t catch me --- name: Error message: Can’t catch me @@ -284,16 +281,16 @@ not ok 28 - Error: Can’t catch me ... ---tty-stream-chunk-separator # unhandled-rejection -not ok 29 - unhandled-rejection +not ok 28 - unhandled-rejection --- message: Non-error object formatted: 'null' ... ---tty-stream-chunk-separator -1..23 -# tests 22 -# pass 7 +1..22 +# tests 21 +# pass 6 # skip 1 # fail 21 diff --git a/test-tap/reporters/tap.regular.v14.log b/test-tap/reporters/tap.regular.v14.log index 6d5c17e7f..5a4961709 100644 --- a/test-tap/reporters/tap.regular.v14.log +++ b/test-tap/reporters/tap.regular.v14.log @@ -53,20 +53,17 @@ not ok 4 - output-in-hook › failing test ---tty-stream-chunk-separator # afterAlways ---tty-stream-chunk-separator -# slow › slow -ok 5 - slow › slow ----tty-stream-chunk-separator # test › skip -ok 6 - test › skip # SKIP +ok 5 - test › skip # SKIP ---tty-stream-chunk-separator # test › todo -not ok 7 - test › todo # TODO +not ok 6 - test › todo # TODO ---tty-stream-chunk-separator # test › passes -ok 8 - test › passes +ok 7 - test › passes ---tty-stream-chunk-separator # test › fails -not ok 9 - test › fails +not ok 8 - test › fails --- name: AssertionError message: Test failed via `t.fail()` @@ -75,10 +72,10 @@ not ok 9 - test › fails ... ---tty-stream-chunk-separator # test › known failure -ok 10 - test › known failure +ok 9 - test › known failure ---tty-stream-chunk-separator # test › no longer failing -not ok 11 - test › no longer failing +not ok 10 - test › no longer failing --- name: Error message: >- @@ -88,7 +85,7 @@ not ok 11 - test › no longer failing ... ---tty-stream-chunk-separator # test › logs -not ok 12 - test › logs +not ok 11 - test › logs * hello * world --- @@ -99,7 +96,7 @@ not ok 12 - test › logs ... ---tty-stream-chunk-separator # test › formatted -not ok 13 - test › formatted +not ok 12 - test › formatted --- name: AssertionError assertion: deepEqual @@ -111,7 +108,7 @@ not ok 13 - test › formatted ... ---tty-stream-chunk-separator # test › power-assert -not ok 14 - test › power-assert +not ok 13 - test › power-assert --- name: AssertionError assertion: assert @@ -122,7 +119,7 @@ not ok 14 - test › power-assert ... ---tty-stream-chunk-separator # test › bad throws -not ok 15 - test › bad throws +not ok 14 - test › bad throws --- name: AssertionError message: Improper usage of `t.throws()` detected @@ -138,7 +135,7 @@ not ok 15 - test › bad throws ... ---tty-stream-chunk-separator # test › bad notThrows -not ok 16 - test › bad notThrows +not ok 15 - test › bad notThrows --- name: AssertionError message: Improper usage of `t.notThrows()` detected @@ -154,7 +151,7 @@ not ok 16 - test › bad notThrows ... ---tty-stream-chunk-separator # test › implementation throws non-error -not ok 17 - test › implementation throws non-error +not ok 16 - test › implementation throws non-error --- name: AssertionError message: Error thrown in test @@ -164,7 +161,7 @@ not ok 17 - test › implementation throws non-error ... ---tty-stream-chunk-separator # traces-in-t-throws › throws -not ok 18 - traces-in-t-throws › throws +not ok 17 - traces-in-t-throws › throws --- name: AssertionError assertion: throws @@ -184,7 +181,7 @@ not ok 18 - traces-in-t-throws › throws ... ---tty-stream-chunk-separator # traces-in-t-throws › notThrows -not ok 19 - traces-in-t-throws › notThrows +not ok 18 - traces-in-t-throws › notThrows --- name: AssertionError assertion: notThrows @@ -200,7 +197,7 @@ not ok 19 - traces-in-t-throws › notThrows ... ---tty-stream-chunk-separator # traces-in-t-throws › notThrowsAsync -not ok 20 - traces-in-t-throws › notThrowsAsync +not ok 19 - traces-in-t-throws › notThrowsAsync --- name: AssertionError assertion: notThrowsAsync @@ -216,7 +213,7 @@ not ok 20 - traces-in-t-throws › notThrowsAsync ... ---tty-stream-chunk-separator # traces-in-t-throws › throwsAsync -not ok 21 - traces-in-t-throws › throwsAsync +not ok 20 - traces-in-t-throws › throwsAsync --- name: AssertionError assertion: throwsAsync @@ -235,7 +232,7 @@ not ok 21 - traces-in-t-throws › throwsAsync ... ---tty-stream-chunk-separator # traces-in-t-throws › throwsAsync different error -not ok 22 - traces-in-t-throws › throwsAsync different error +not ok 21 - traces-in-t-throws › throwsAsync different error --- name: AssertionError assertion: throwsAsync @@ -253,10 +250,10 @@ not ok 22 - traces-in-t-throws › throwsAsync different erro ... ---tty-stream-chunk-separator # uncaught-exception › passes -ok 23 - uncaught-exception › passes +ok 22 - uncaught-exception › passes ---tty-stream-chunk-separator # Error: Can’t catch me -not ok 24 - Error: Can’t catch me +not ok 23 - Error: Can’t catch me --- name: Error message: Can’t catch me @@ -267,16 +264,16 @@ not ok 24 - Error: Can’t catch me ... ---tty-stream-chunk-separator # uncaught-exception.js exited with a non-zero exit code: 1 -not ok 25 - uncaught-exception.js exited with a non-zero exit code: 1 +not ok 24 - uncaught-exception.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator # unhandled-rejection › passes -ok 26 - unhandled-rejection › passes +ok 25 - unhandled-rejection › passes ---tty-stream-chunk-separator # unhandled-rejection › unhandled non-error rejection -ok 27 - unhandled-rejection › unhandled non-error rejection +ok 26 - unhandled-rejection › unhandled non-error rejection ---tty-stream-chunk-separator # Error: Can’t catch me -not ok 28 - Error: Can’t catch me +not ok 27 - Error: Can’t catch me --- name: Error message: Can’t catch me @@ -284,16 +281,16 @@ not ok 28 - Error: Can’t catch me ... ---tty-stream-chunk-separator # unhandled-rejection -not ok 29 - unhandled-rejection +not ok 28 - unhandled-rejection --- message: Non-error object formatted: 'null' ... ---tty-stream-chunk-separator -1..23 -# tests 22 -# pass 7 +1..22 +# tests 21 +# pass 6 # skip 1 # fail 21 diff --git a/test-tap/reporters/verbose.js b/test-tap/reporters/verbose.js index 167f68410..089738e03 100644 --- a/test-tap/reporters/verbose.js +++ b/test-tap/reporters/verbose.js @@ -13,7 +13,7 @@ const run = (type, sanitizers = []) => t => { const tty = new TTYStream({ columns: 200, - sanitizers: [...sanitizers, report.sanitizers.cwd, report.sanitizers.experimentalWarning, report.sanitizers.posix, report.sanitizers.slow, report.sanitizers.version] + sanitizers: [...sanitizers, report.sanitizers.cwd, report.sanitizers.experimentalWarning, report.sanitizers.posix, report.sanitizers.version] }); const reporter = new VerboseReporter({ projectDir: report.projectDir(type), diff --git a/test-tap/reporters/verbose.regular.v10.log b/test-tap/reporters/verbose.regular.v10.log index 5b19aef56..f72e5399a 100644 --- a/test-tap/reporters/verbose.regular.v10.log +++ b/test-tap/reporters/verbose.regular.v10.log @@ -39,8 +39,6 @@ ---tty-stream-chunk-separator output-in-hook › cleanup ℹ afterAlways ----tty-stream-chunk-separator - ✔ slow › slow (000ms) ---tty-stream-chunk-separator - test › skip ---tty-stream-chunk-separator diff --git a/test-tap/reporters/verbose.regular.v12.log b/test-tap/reporters/verbose.regular.v12.log index 77408f9a9..418166d85 100644 --- a/test-tap/reporters/verbose.regular.v12.log +++ b/test-tap/reporters/verbose.regular.v12.log @@ -39,8 +39,6 @@ ---tty-stream-chunk-separator output-in-hook › cleanup ℹ afterAlways ----tty-stream-chunk-separator - ✔ slow › slow (000ms) ---tty-stream-chunk-separator - test › skip ---tty-stream-chunk-separator diff --git a/test-tap/reporters/verbose.regular.v13.log b/test-tap/reporters/verbose.regular.v13.log index 20f88504f..418166d85 100644 --- a/test-tap/reporters/verbose.regular.v13.log +++ b/test-tap/reporters/verbose.regular.v13.log @@ -24,7 +24,7 @@ output-in-hook › beforeEach hook for failing test ℹ beforeEach ---tty-stream-chunk-separator - ✔ output-in-hook › passing test (105ms) + ✔ output-in-hook › passing test ---tty-stream-chunk-separator ✖ output-in-hook › failing test Test failed via `t.fail()` ---tty-stream-chunk-separator @@ -39,8 +39,6 @@ ---tty-stream-chunk-separator output-in-hook › cleanup ℹ afterAlways ----tty-stream-chunk-separator - ✔ slow › slow (000ms) ---tty-stream-chunk-separator - test › skip ---tty-stream-chunk-separator diff --git a/test-tap/reporters/verbose.regular.v14.log b/test-tap/reporters/verbose.regular.v14.log index 77408f9a9..418166d85 100644 --- a/test-tap/reporters/verbose.regular.v14.log +++ b/test-tap/reporters/verbose.regular.v14.log @@ -39,8 +39,6 @@ ---tty-stream-chunk-separator output-in-hook › cleanup ℹ afterAlways ----tty-stream-chunk-separator - ✔ slow › slow (000ms) ---tty-stream-chunk-separator - test › skip ---tty-stream-chunk-separator diff --git a/test-tap/reporters/verbose.watch.v12.log b/test-tap/reporters/verbose.watch.v12.log index c790e55ef..31689cbd4 100644 --- a/test-tap/reporters/verbose.watch.v12.log +++ b/test-tap/reporters/verbose.watch.v12.log @@ -10,7 +10,7 @@ ---tty-stream-chunk-separator ---tty-stream-chunk-separator - ✔ test › passes (198ms) + ✔ test › passes ---tty-stream-chunk-separator 1 test passed [17:19:12]