From 99ab93ada750ef27fa05a0cee7fcf709a4125996 Mon Sep 17 00:00:00 2001 From: tymfear Date: Wed, 23 Dec 2020 16:21:46 +0200 Subject: [PATCH] Upgrade supertap and print `t.log` entries according to TAP diagnostics spec Co-authored-by: Daudov, Tymur Co-authored-by: Mark Wubben --- lib/reporters/tap.js | 2 +- package-lock.json | 105 +++++++++++++++-------- package.json | 2 +- test-tap/reporters/tap.edgecases.v10.log | 6 -- test-tap/reporters/tap.edgecases.v12.log | 6 -- test-tap/reporters/tap.edgecases.v14.log | 6 -- test-tap/reporters/tap.edgecases.v15.log | 6 -- test-tap/reporters/tap.failfast.v10.log | 3 +- test-tap/reporters/tap.failfast.v12.log | 3 +- test-tap/reporters/tap.failfast.v14.log | 3 +- test-tap/reporters/tap.failfast.v15.log | 3 +- test-tap/reporters/tap.failfast2.v10.log | 3 +- test-tap/reporters/tap.failfast2.v12.log | 3 +- test-tap/reporters/tap.failfast2.v14.log | 3 +- test-tap/reporters/tap.failfast2.v15.log | 3 +- test-tap/reporters/tap.only.v10.log | 6 +- test-tap/reporters/tap.only.v12.log | 6 +- test-tap/reporters/tap.only.v14.log | 6 +- test-tap/reporters/tap.only.v15.log | 6 +- test-tap/reporters/tap.regular.v10.log | 96 +++++++-------------- test-tap/reporters/tap.regular.v12.log | 96 +++++++-------------- test-tap/reporters/tap.regular.v14.log | 96 +++++++-------------- test-tap/reporters/tap.regular.v15.log | 96 +++++++-------------- 23 files changed, 219 insertions(+), 346 deletions(-) diff --git a/lib/reporters/tap.js b/lib/reporters/tap.js index 9757dfb84..b7bda3067 100644 --- a/lib/reporters/tap.js +++ b/lib/reporters/tap.js @@ -125,7 +125,7 @@ class TapReporter { this.reportStream.write(`# ${stripAnsi(title)}${os.EOL}`); if (evt.logs) { for (const log of evt.logs) { - const logLines = indentString(log, 4).replace(/^ {4}/, ' # '); + const logLines = indentString(log, 4).replace(/^ {4}/gm, '# '); this.reportStream.write(`${logLines}${os.EOL}`); } } diff --git a/package-lock.json b/package-lock.json index a146170de..99666eef5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -170,6 +170,12 @@ "yargs": "^16.0.3" }, "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -201,6 +207,48 @@ "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==", "dev": true }, + "serialize-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz", + "integrity": "sha1-ULZ51WNc34Rme9yOWa9OW4HV9go=", + "dev": true + }, + "supertap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supertap/-/supertap-1.0.0.tgz", + "integrity": "sha512-HZJ3geIMPgVwKk2VsmO5YHqnnJYl6bV5A9JW2uzqV43WmpgliNEYbuvukfor7URpaqpxuw3CfZ3ONdVbZjCgIA==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "indent-string": "^3.2.0", + "js-yaml": "^3.10.0", + "serialize-error": "^2.1.0", + "strip-ansi": "^4.0.0" + }, + "dependencies": { + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, "update-notifier": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", @@ -7457,9 +7505,19 @@ } }, "serialize-error": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz", - "integrity": "sha1-ULZ51WNc34Rme9yOWa9OW4HV9go=" + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", + "requires": { + "type-fest": "^0.13.1" + }, + "dependencies": { + "type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==" + } + } }, "set-blocking": { "version": "2.0.0", @@ -8020,40 +8078,15 @@ "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supertap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supertap/-/supertap-1.0.0.tgz", - "integrity": "sha512-HZJ3geIMPgVwKk2VsmO5YHqnnJYl6bV5A9JW2uzqV43WmpgliNEYbuvukfor7URpaqpxuw3CfZ3ONdVbZjCgIA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supertap/-/supertap-2.0.0.tgz", + "integrity": "sha512-jRzcXlCeDYvKoZGA5oRhYyR3jUIYu0enkSxtmAgHRlD7HwrovTpH4bDSi0py9FtuA8si9cW/fKommJHuaoDHJA==", "requires": { - "arrify": "^1.0.1", - "indent-string": "^3.2.0", - "js-yaml": "^3.10.0", - "serialize-error": "^2.1.0", - "strip-ansi": "^4.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=" - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "requires": { - "ansi-regex": "^3.0.0" - } - } + "arrify": "^2.0.1", + "indent-string": "^4.0.0", + "js-yaml": "^3.14.0", + "serialize-error": "^7.0.1", + "strip-ansi": "^6.0.0" } }, "supports-color": { diff --git a/package.json b/package.json index 13b0f417a..366bca3d7 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "source-map-support": "^0.5.19", "stack-utils": "^2.0.3", "strip-ansi": "^6.0.0", - "supertap": "^1.0.0", + "supertap": "^2.0.0", "temp-dir": "^2.0.0", "trim-off-newlines": "^1.0.1", "update-notifier": "^5.0.1", diff --git a/test-tap/reporters/tap.edgecases.v10.log b/test-tap/reporters/tap.edgecases.v10.log index 838ef9d3a..d8e0bf81a 100644 --- a/test-tap/reporters/tap.edgecases.v10.log +++ b/test-tap/reporters/tap.edgecases.v10.log @@ -1,9 +1,7 @@ TAP version 13 ---tty-stream-chunk-separator -# No tests found in ava-import-no-test-declaration.js not ok 1 - No tests found in ava-import-no-test-declaration.js ---tty-stream-chunk-separator -# TypeError: test is not a function not ok 2 - TypeError: test is not a function --- name: TypeError @@ -13,13 +11,10 @@ not ok 2 - TypeError: test is not a function (test-tap/fixture/report/edgecases/import-and-use-test-member.js:3:1) ... ---tty-stream-chunk-separator -# import-and-use-test-member.js exited with a non-zero exit code: 1 not ok 3 - import-and-use-test-member.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file not ok 4 - No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file ---tty-stream-chunk-separator -# Error: throws not ok 5 - Error: throws --- name: Error @@ -27,7 +22,6 @@ not ok 5 - Error: throws at: 'Object. (test-tap/fixture/report/edgecases/throws.js:1:7)' ... ---tty-stream-chunk-separator -# throws.js exited with a non-zero exit code: 1 not ok 6 - throws.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator diff --git a/test-tap/reporters/tap.edgecases.v12.log b/test-tap/reporters/tap.edgecases.v12.log index 838ef9d3a..d8e0bf81a 100644 --- a/test-tap/reporters/tap.edgecases.v12.log +++ b/test-tap/reporters/tap.edgecases.v12.log @@ -1,9 +1,7 @@ TAP version 13 ---tty-stream-chunk-separator -# No tests found in ava-import-no-test-declaration.js not ok 1 - No tests found in ava-import-no-test-declaration.js ---tty-stream-chunk-separator -# TypeError: test is not a function not ok 2 - TypeError: test is not a function --- name: TypeError @@ -13,13 +11,10 @@ not ok 2 - TypeError: test is not a function (test-tap/fixture/report/edgecases/import-and-use-test-member.js:3:1) ... ---tty-stream-chunk-separator -# import-and-use-test-member.js exited with a non-zero exit code: 1 not ok 3 - import-and-use-test-member.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file not ok 4 - No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file ---tty-stream-chunk-separator -# Error: throws not ok 5 - Error: throws --- name: Error @@ -27,7 +22,6 @@ not ok 5 - Error: throws at: 'Object. (test-tap/fixture/report/edgecases/throws.js:1:7)' ... ---tty-stream-chunk-separator -# throws.js exited with a non-zero exit code: 1 not ok 6 - throws.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator diff --git a/test-tap/reporters/tap.edgecases.v14.log b/test-tap/reporters/tap.edgecases.v14.log index 838ef9d3a..d8e0bf81a 100644 --- a/test-tap/reporters/tap.edgecases.v14.log +++ b/test-tap/reporters/tap.edgecases.v14.log @@ -1,9 +1,7 @@ TAP version 13 ---tty-stream-chunk-separator -# No tests found in ava-import-no-test-declaration.js not ok 1 - No tests found in ava-import-no-test-declaration.js ---tty-stream-chunk-separator -# TypeError: test is not a function not ok 2 - TypeError: test is not a function --- name: TypeError @@ -13,13 +11,10 @@ not ok 2 - TypeError: test is not a function (test-tap/fixture/report/edgecases/import-and-use-test-member.js:3:1) ... ---tty-stream-chunk-separator -# import-and-use-test-member.js exited with a non-zero exit code: 1 not ok 3 - import-and-use-test-member.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file not ok 4 - No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file ---tty-stream-chunk-separator -# Error: throws not ok 5 - Error: throws --- name: Error @@ -27,7 +22,6 @@ not ok 5 - Error: throws at: 'Object. (test-tap/fixture/report/edgecases/throws.js:1:7)' ... ---tty-stream-chunk-separator -# throws.js exited with a non-zero exit code: 1 not ok 6 - throws.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator diff --git a/test-tap/reporters/tap.edgecases.v15.log b/test-tap/reporters/tap.edgecases.v15.log index 838ef9d3a..d8e0bf81a 100644 --- a/test-tap/reporters/tap.edgecases.v15.log +++ b/test-tap/reporters/tap.edgecases.v15.log @@ -1,9 +1,7 @@ TAP version 13 ---tty-stream-chunk-separator -# No tests found in ava-import-no-test-declaration.js not ok 1 - No tests found in ava-import-no-test-declaration.js ---tty-stream-chunk-separator -# TypeError: test is not a function not ok 2 - TypeError: test is not a function --- name: TypeError @@ -13,13 +11,10 @@ not ok 2 - TypeError: test is not a function (test-tap/fixture/report/edgecases/import-and-use-test-member.js:3:1) ... ---tty-stream-chunk-separator -# import-and-use-test-member.js exited with a non-zero exit code: 1 not ok 3 - import-and-use-test-member.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file not ok 4 - No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file ---tty-stream-chunk-separator -# Error: throws not ok 5 - Error: throws --- name: Error @@ -27,7 +22,6 @@ not ok 5 - Error: throws at: 'Object. (test-tap/fixture/report/edgecases/throws.js:1:7)' ... ---tty-stream-chunk-separator -# throws.js exited with a non-zero exit code: 1 not ok 6 - throws.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator diff --git a/test-tap/reporters/tap.failfast.v10.log b/test-tap/reporters/tap.failfast.v10.log index af03c5b32..612b4bf05 100644 --- a/test-tap/reporters/tap.failfast.v10.log +++ b/test-tap/reporters/tap.failfast.v10.log @@ -1,7 +1,6 @@ TAP version 13 ---tty-stream-chunk-separator -# a › fails -not ok 1 - a › fails +not ok 1 - a › fails --- name: AssertionError message: Test failed via `t.fail()` diff --git a/test-tap/reporters/tap.failfast.v12.log b/test-tap/reporters/tap.failfast.v12.log index a38a7d8ef..258c0deec 100644 --- a/test-tap/reporters/tap.failfast.v12.log +++ b/test-tap/reporters/tap.failfast.v12.log @@ -1,7 +1,6 @@ TAP version 13 ---tty-stream-chunk-separator -# a › fails -not ok 1 - a › fails +not ok 1 - a › fails --- name: AssertionError message: Test failed via `t.fail()` diff --git a/test-tap/reporters/tap.failfast.v14.log b/test-tap/reporters/tap.failfast.v14.log index a38a7d8ef..258c0deec 100644 --- a/test-tap/reporters/tap.failfast.v14.log +++ b/test-tap/reporters/tap.failfast.v14.log @@ -1,7 +1,6 @@ TAP version 13 ---tty-stream-chunk-separator -# a › fails -not ok 1 - a › fails +not ok 1 - a › fails --- name: AssertionError message: Test failed via `t.fail()` diff --git a/test-tap/reporters/tap.failfast.v15.log b/test-tap/reporters/tap.failfast.v15.log index a38a7d8ef..258c0deec 100644 --- a/test-tap/reporters/tap.failfast.v15.log +++ b/test-tap/reporters/tap.failfast.v15.log @@ -1,7 +1,6 @@ TAP version 13 ---tty-stream-chunk-separator -# a › fails -not ok 1 - a › fails +not ok 1 - a › fails --- name: AssertionError message: Test failed via `t.fail()` diff --git a/test-tap/reporters/tap.failfast2.v10.log b/test-tap/reporters/tap.failfast2.v10.log index eb8f38c15..f1cc7fd8a 100644 --- a/test-tap/reporters/tap.failfast2.v10.log +++ b/test-tap/reporters/tap.failfast2.v10.log @@ -1,7 +1,6 @@ TAP version 13 ---tty-stream-chunk-separator -# a › fails -not ok 1 - a › fails +not ok 1 - a › fails --- name: AssertionError message: Test failed via `t.fail()` diff --git a/test-tap/reporters/tap.failfast2.v12.log b/test-tap/reporters/tap.failfast2.v12.log index 4300019d7..854c9a8c0 100644 --- a/test-tap/reporters/tap.failfast2.v12.log +++ b/test-tap/reporters/tap.failfast2.v12.log @@ -1,7 +1,6 @@ TAP version 13 ---tty-stream-chunk-separator -# a › fails -not ok 1 - a › fails +not ok 1 - a › fails --- name: AssertionError message: Test failed via `t.fail()` diff --git a/test-tap/reporters/tap.failfast2.v14.log b/test-tap/reporters/tap.failfast2.v14.log index 4300019d7..854c9a8c0 100644 --- a/test-tap/reporters/tap.failfast2.v14.log +++ b/test-tap/reporters/tap.failfast2.v14.log @@ -1,7 +1,6 @@ TAP version 13 ---tty-stream-chunk-separator -# a › fails -not ok 1 - a › fails +not ok 1 - a › fails --- name: AssertionError message: Test failed via `t.fail()` diff --git a/test-tap/reporters/tap.failfast2.v15.log b/test-tap/reporters/tap.failfast2.v15.log index 4300019d7..854c9a8c0 100644 --- a/test-tap/reporters/tap.failfast2.v15.log +++ b/test-tap/reporters/tap.failfast2.v15.log @@ -1,7 +1,6 @@ TAP version 13 ---tty-stream-chunk-separator -# a › fails -not ok 1 - a › fails +not ok 1 - a › fails --- name: AssertionError message: Test failed via `t.fail()` diff --git a/test-tap/reporters/tap.only.v10.log b/test-tap/reporters/tap.only.v10.log index 4df4b8c60..36f42b988 100644 --- a/test-tap/reporters/tap.only.v10.log +++ b/test-tap/reporters/tap.only.v10.log @@ -1,10 +1,8 @@ TAP version 13 ---tty-stream-chunk-separator -# a › only -ok 1 - a › only +ok 1 - a › only ---tty-stream-chunk-separator -# b › passes -ok 2 - b › passes +ok 2 - b › passes ---tty-stream-chunk-separator 1..2 diff --git a/test-tap/reporters/tap.only.v12.log b/test-tap/reporters/tap.only.v12.log index 4df4b8c60..36f42b988 100644 --- a/test-tap/reporters/tap.only.v12.log +++ b/test-tap/reporters/tap.only.v12.log @@ -1,10 +1,8 @@ TAP version 13 ---tty-stream-chunk-separator -# a › only -ok 1 - a › only +ok 1 - a › only ---tty-stream-chunk-separator -# b › passes -ok 2 - b › passes +ok 2 - b › passes ---tty-stream-chunk-separator 1..2 diff --git a/test-tap/reporters/tap.only.v14.log b/test-tap/reporters/tap.only.v14.log index 4df4b8c60..36f42b988 100644 --- a/test-tap/reporters/tap.only.v14.log +++ b/test-tap/reporters/tap.only.v14.log @@ -1,10 +1,8 @@ TAP version 13 ---tty-stream-chunk-separator -# a › only -ok 1 - a › only +ok 1 - a › only ---tty-stream-chunk-separator -# b › passes -ok 2 - b › passes +ok 2 - b › passes ---tty-stream-chunk-separator 1..2 diff --git a/test-tap/reporters/tap.only.v15.log b/test-tap/reporters/tap.only.v15.log index 4df4b8c60..36f42b988 100644 --- a/test-tap/reporters/tap.only.v15.log +++ b/test-tap/reporters/tap.only.v15.log @@ -1,10 +1,8 @@ TAP version 13 ---tty-stream-chunk-separator -# a › only -ok 1 - a › only +ok 1 - a › only ---tty-stream-chunk-separator -# b › passes -ok 2 - b › passes +ok 2 - b › passes ---tty-stream-chunk-separator 1..2 diff --git a/test-tap/reporters/tap.regular.v10.log b/test-tap/reporters/tap.regular.v10.log index 376015c75..737f37817 100644 --- a/test-tap/reporters/tap.regular.v10.log +++ b/test-tap/reporters/tap.regular.v10.log @@ -1,6 +1,5 @@ TAP version 13 ---tty-stream-chunk-separator -# TypeError: test.serial.test is not a function not ok 1 - TypeError: test.serial.test is not a function --- name: TypeError @@ -8,11 +7,9 @@ not ok 1 - TypeError: test.serial.test is not a function at: 'Object. (test-tap/fixture/report/regular/bad-test-chain.js:3:13)' ... ---tty-stream-chunk-separator -# bad-test-chain.js exited with a non-zero exit code: 1 not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# nested-objects › format with max depth 4 -not ok 3 - nested-objects › format with max depth 4 +not ok 3 - nested-objects › format with max depth 4 --- name: AssertionError assertion: deepEqual @@ -35,8 +32,7 @@ not ok 3 - nested-objects › format with max depth 4 at: 't (test-tap/fixture/report/regular/nested-objects.js:28:4)' ... ---tty-stream-chunk-separator -# nested-objects › format like with max depth 4 -not ok 4 - nested-objects › format like with max depth 4 +not ok 4 - nested-objects › format like with max depth 4 --- name: AssertionError assertion: like @@ -57,21 +53,19 @@ not ok 4 - nested-objects › format like with max depth 4 ---tty-stream-chunk-separator # output-in-hook › before hook ---tty-stream-chunk-separator - # before +# before ---tty-stream-chunk-separator # output-in-hook › beforeEach hook for passing test ---tty-stream-chunk-separator - # beforeEach +# beforeEach ---tty-stream-chunk-separator # output-in-hook › beforeEach hook for failing test ---tty-stream-chunk-separator - # beforeEach +# beforeEach ---tty-stream-chunk-separator -# output-in-hook › passing test -ok 5 - output-in-hook › passing test +ok 5 - output-in-hook › passing test ---tty-stream-chunk-separator -# output-in-hook › failing test -not ok 6 - output-in-hook › failing test +not ok 6 - output-in-hook › failing test --- name: AssertionError message: Test failed via `t.fail()` @@ -81,31 +75,27 @@ not ok 6 - output-in-hook › failing test ---tty-stream-chunk-separator # output-in-hook › afterEach hook for passing test ---tty-stream-chunk-separator - # afterEach +# afterEach ---tty-stream-chunk-separator # output-in-hook › afterEach.always hook for failing test ---tty-stream-chunk-separator - # afterEachAlways +# afterEachAlways ---tty-stream-chunk-separator # output-in-hook › afterEach.always hook for passing test ---tty-stream-chunk-separator - # afterEachAlways +# afterEachAlways ---tty-stream-chunk-separator # output-in-hook › cleanup ---tty-stream-chunk-separator - # afterAlways +# afterAlways ---tty-stream-chunk-separator -# test › skip -ok 7 - test › skip # SKIP +ok 7 - test › skip # SKIP ---tty-stream-chunk-separator -# test › todo -not ok 8 - test › todo # TODO +not ok 8 - test › todo # TODO ---tty-stream-chunk-separator -# test › passes -ok 9 - test › passes +ok 9 - test › passes ---tty-stream-chunk-separator -# test › fails -not ok 10 - test › fails +not ok 10 - test › fails --- name: AssertionError message: Test failed via `t.fail()` @@ -113,11 +103,9 @@ not ok 10 - test › fails at: 't (test-tap/fixture/report/regular/test.js:9:22)' ... ---tty-stream-chunk-separator -# test › known failure -ok 11 - test › known failure +ok 11 - test › known failure ---tty-stream-chunk-separator -# test › no longer failing -not ok 12 - test › no longer failing +not ok 12 - test › no longer failing --- name: Error message: >- @@ -126,10 +114,9 @@ not ok 12 - test › no longer failing at: '' ... ---tty-stream-chunk-separator -# test › logs -not ok 13 - test › logs - * hello - * world +not ok 13 - test › logs +# hello +# world --- name: AssertionError message: Test failed via `t.fail()` @@ -137,8 +124,7 @@ not ok 13 - test › logs at: 't (test-tap/fixture/report/regular/test.js:18:4)' ... ---tty-stream-chunk-separator -# test › formatted -not ok 14 - test › formatted +not ok 14 - test › formatted --- name: AssertionError assertion: deepEqual @@ -149,8 +135,7 @@ not ok 14 - test › formatted at: 't (test-tap/fixture/report/regular/test.js:22:4)' ... ---tty-stream-chunk-separator -# test › power-assert -not ok 15 - test › power-assert +not ok 15 - test › power-assert --- name: AssertionError assertion: assert @@ -160,8 +145,7 @@ not ok 15 - test › power-assert at: 't (test-tap/fixture/report/regular/test.js:27:4)' ... ---tty-stream-chunk-separator -# test › bad throws -not ok 16 - test › bad throws +not ok 16 - test › bad throws --- name: AssertionError message: Improper usage of `t.throws()` detected @@ -176,8 +160,7 @@ not ok 16 - test › bad throws t (test-tap/fixture/report/regular/test.js:35:11) ... ---tty-stream-chunk-separator -# test › bad notThrows -not ok 17 - test › bad notThrows +not ok 17 - test › bad notThrows --- name: AssertionError message: Improper usage of `t.notThrows()` detected @@ -192,8 +175,7 @@ not ok 17 - test › bad notThrows t (test-tap/fixture/report/regular/test.js:43:14) ... ---tty-stream-chunk-separator -# test › implementation throws non-error -not ok 18 - test › implementation throws non-error +not ok 18 - test › implementation throws non-error --- name: AssertionError message: Error thrown in test @@ -202,8 +184,7 @@ not ok 18 - test › implementation throws non-error at: '' ... ---tty-stream-chunk-separator -# traces-in-t-throws › throws -not ok 19 - traces-in-t-throws › throws +not ok 19 - traces-in-t-throws › throws --- name: AssertionError assertion: throws @@ -222,8 +203,7 @@ not ok 19 - traces-in-t-throws › throws t (test-tap/fixture/report/regular/traces-in-t-throws.js:12:4) ... ---tty-stream-chunk-separator -# traces-in-t-throws › notThrows -not ok 20 - traces-in-t-throws › notThrows +not ok 20 - traces-in-t-throws › notThrows --- name: AssertionError assertion: notThrows @@ -241,8 +221,7 @@ not ok 20 - traces-in-t-throws › notThrows t (test-tap/fixture/report/regular/traces-in-t-throws.js:16:4) ... ---tty-stream-chunk-separator -# traces-in-t-throws › notThrowsAsync -not ok 21 - traces-in-t-throws › notThrowsAsync +not ok 21 - traces-in-t-throws › notThrowsAsync --- name: AssertionError assertion: notThrowsAsync @@ -257,8 +236,7 @@ not ok 21 - traces-in-t-throws › notThrowsAsync t (test-tap/fixture/report/regular/traces-in-t-throws.js:20:4) ... ---tty-stream-chunk-separator -# traces-in-t-throws › throwsAsync -not ok 22 - traces-in-t-throws › throwsAsync +not ok 22 - traces-in-t-throws › throwsAsync --- name: AssertionError assertion: throwsAsync @@ -273,8 +251,7 @@ not ok 22 - traces-in-t-throws › throwsAsync t (test-tap/fixture/report/regular/traces-in-t-throws.js:24:4) ... ---tty-stream-chunk-separator -# traces-in-t-throws › throwsAsync different error -not ok 23 - traces-in-t-throws › throwsAsync different error +not ok 23 - traces-in-t-throws › throwsAsync different error --- name: AssertionError assertion: throwsAsync @@ -291,10 +268,8 @@ not ok 23 - traces-in-t-throws › throwsAsync different erro t (test-tap/fixture/report/regular/traces-in-t-throws.js:28:11) ... ---tty-stream-chunk-separator -# uncaught-exception › passes -ok 24 - uncaught-exception › passes +ok 24 - uncaught-exception › passes ---tty-stream-chunk-separator -# Error: Can’t catch me not ok 25 - Error: Can’t catch me --- name: Error @@ -304,16 +279,12 @@ not ok 25 - Error: Can’t catch me (test-tap/fixture/report/regular/uncaught-exception.js:5:9) ... ---tty-stream-chunk-separator -# uncaught-exception.js exited with a non-zero exit code: 1 not ok 26 - uncaught-exception.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# unhandled-rejection › passes -ok 27 - unhandled-rejection › passes +ok 27 - unhandled-rejection › passes ---tty-stream-chunk-separator -# unhandled-rejection › unhandled non-error rejection -ok 28 - unhandled-rejection › unhandled non-error rejection +ok 28 - unhandled-rejection › unhandled non-error rejection ---tty-stream-chunk-separator -# Error: Can’t catch me not ok 29 - Error: Can’t catch me --- name: Error @@ -321,7 +292,6 @@ not ok 29 - Error: Can’t catch me at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.js:4:17)' ... ---tty-stream-chunk-separator -# unhandled-rejection not ok 30 - unhandled-rejection --- message: Non-error object diff --git a/test-tap/reporters/tap.regular.v12.log b/test-tap/reporters/tap.regular.v12.log index 3361eaf98..a8ab2f46a 100644 --- a/test-tap/reporters/tap.regular.v12.log +++ b/test-tap/reporters/tap.regular.v12.log @@ -1,6 +1,5 @@ TAP version 13 ---tty-stream-chunk-separator -# TypeError: test.serial.test is not a function not ok 1 - TypeError: test.serial.test is not a function --- name: TypeError @@ -8,11 +7,9 @@ not ok 1 - TypeError: test.serial.test is not a function at: 'Object. (test-tap/fixture/report/regular/bad-test-chain.js:3:13)' ... ---tty-stream-chunk-separator -# bad-test-chain.js exited with a non-zero exit code: 1 not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# nested-objects › format with max depth 4 -not ok 3 - nested-objects › format with max depth 4 +not ok 3 - nested-objects › format with max depth 4 --- name: AssertionError assertion: deepEqual @@ -35,8 +32,7 @@ not ok 3 - nested-objects › format with max depth 4 at: 'test-tap/fixture/report/regular/nested-objects.js:28:4' ... ---tty-stream-chunk-separator -# nested-objects › format like with max depth 4 -not ok 4 - nested-objects › format like with max depth 4 +not ok 4 - nested-objects › format like with max depth 4 --- name: AssertionError assertion: like @@ -57,21 +53,19 @@ not ok 4 - nested-objects › format like with max depth 4 ---tty-stream-chunk-separator # output-in-hook › before hook ---tty-stream-chunk-separator - # before +# before ---tty-stream-chunk-separator # output-in-hook › beforeEach hook for passing test ---tty-stream-chunk-separator - # beforeEach +# beforeEach ---tty-stream-chunk-separator # output-in-hook › beforeEach hook for failing test ---tty-stream-chunk-separator - # beforeEach +# beforeEach ---tty-stream-chunk-separator -# output-in-hook › passing test -ok 5 - output-in-hook › passing test +ok 5 - output-in-hook › passing test ---tty-stream-chunk-separator -# output-in-hook › failing test -not ok 6 - output-in-hook › failing test +not ok 6 - output-in-hook › failing test --- name: AssertionError message: Test failed via `t.fail()` @@ -81,31 +75,27 @@ not ok 6 - output-in-hook › failing test ---tty-stream-chunk-separator # output-in-hook › afterEach hook for passing test ---tty-stream-chunk-separator - # afterEach +# afterEach ---tty-stream-chunk-separator # output-in-hook › afterEach.always hook for failing test ---tty-stream-chunk-separator - # afterEachAlways +# afterEachAlways ---tty-stream-chunk-separator # output-in-hook › afterEach.always hook for passing test ---tty-stream-chunk-separator - # afterEachAlways +# afterEachAlways ---tty-stream-chunk-separator # output-in-hook › cleanup ---tty-stream-chunk-separator - # afterAlways +# afterAlways ---tty-stream-chunk-separator -# test › skip -ok 7 - test › skip # SKIP +ok 7 - test › skip # SKIP ---tty-stream-chunk-separator -# test › todo -not ok 8 - test › todo # TODO +not ok 8 - test › todo # TODO ---tty-stream-chunk-separator -# test › passes -ok 9 - test › passes +ok 9 - test › passes ---tty-stream-chunk-separator -# test › fails -not ok 10 - test › fails +not ok 10 - test › fails --- name: AssertionError message: Test failed via `t.fail()` @@ -113,11 +103,9 @@ not ok 10 - test › fails at: 'test-tap/fixture/report/regular/test.js:9:22' ... ---tty-stream-chunk-separator -# test › known failure -ok 11 - test › known failure +ok 11 - test › known failure ---tty-stream-chunk-separator -# test › no longer failing -not ok 12 - test › no longer failing +not ok 12 - test › no longer failing --- name: Error message: >- @@ -126,10 +114,9 @@ not ok 12 - test › no longer failing at: '' ... ---tty-stream-chunk-separator -# test › logs -not ok 13 - test › logs - * hello - * world +not ok 13 - test › logs +# hello +# world --- name: AssertionError message: Test failed via `t.fail()` @@ -137,8 +124,7 @@ not ok 13 - test › logs at: 'test-tap/fixture/report/regular/test.js:18:4' ... ---tty-stream-chunk-separator -# test › formatted -not ok 14 - test › formatted +not ok 14 - test › formatted --- name: AssertionError assertion: deepEqual @@ -149,8 +135,7 @@ not ok 14 - test › formatted at: 'test-tap/fixture/report/regular/test.js:22:4' ... ---tty-stream-chunk-separator -# test › power-assert -not ok 15 - test › power-assert +not ok 15 - test › power-assert --- name: AssertionError assertion: assert @@ -160,8 +145,7 @@ not ok 15 - test › power-assert at: 'test-tap/fixture/report/regular/test.js:27:4' ... ---tty-stream-chunk-separator -# test › bad throws -not ok 16 - test › bad throws +not ok 16 - test › bad throws --- name: AssertionError message: Improper usage of `t.throws()` detected @@ -176,8 +160,7 @@ not ok 16 - test › bad throws test-tap/fixture/report/regular/test.js:35:11 ... ---tty-stream-chunk-separator -# test › bad notThrows -not ok 17 - test › bad notThrows +not ok 17 - test › bad notThrows --- name: AssertionError message: Improper usage of `t.notThrows()` detected @@ -192,8 +175,7 @@ not ok 17 - test › bad notThrows test-tap/fixture/report/regular/test.js:43:14 ... ---tty-stream-chunk-separator -# test › implementation throws non-error -not ok 18 - test › implementation throws non-error +not ok 18 - test › implementation throws non-error --- name: AssertionError message: Error thrown in test @@ -202,8 +184,7 @@ not ok 18 - test › implementation throws non-error at: '' ... ---tty-stream-chunk-separator -# traces-in-t-throws › throws -not ok 19 - traces-in-t-throws › throws +not ok 19 - traces-in-t-throws › throws --- name: AssertionError assertion: throws @@ -219,8 +200,7 @@ not ok 19 - traces-in-t-throws › throws test-tap/fixture/report/regular/traces-in-t-throws.js:12:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › notThrows -not ok 20 - traces-in-t-throws › notThrows +not ok 20 - traces-in-t-throws › notThrows --- name: AssertionError assertion: notThrows @@ -235,8 +215,7 @@ not ok 20 - traces-in-t-throws › notThrows test-tap/fixture/report/regular/traces-in-t-throws.js:16:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › notThrowsAsync -not ok 21 - traces-in-t-throws › notThrowsAsync +not ok 21 - traces-in-t-throws › notThrowsAsync --- name: AssertionError assertion: notThrowsAsync @@ -251,8 +230,7 @@ not ok 21 - traces-in-t-throws › notThrowsAsync test-tap/fixture/report/regular/traces-in-t-throws.js:20:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › throwsAsync -not ok 22 - traces-in-t-throws › throwsAsync +not ok 22 - traces-in-t-throws › throwsAsync --- name: AssertionError assertion: throwsAsync @@ -270,8 +248,7 @@ not ok 22 - traces-in-t-throws › throwsAsync test-tap/fixture/report/regular/traces-in-t-throws.js:24:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › throwsAsync different error -not ok 23 - traces-in-t-throws › throwsAsync different error +not ok 23 - traces-in-t-throws › throwsAsync different error --- name: AssertionError assertion: throwsAsync @@ -288,10 +265,8 @@ not ok 23 - traces-in-t-throws › throwsAsync different erro test-tap/fixture/report/regular/traces-in-t-throws.js:28:11 ... ---tty-stream-chunk-separator -# uncaught-exception › passes -ok 24 - uncaught-exception › passes +ok 24 - uncaught-exception › passes ---tty-stream-chunk-separator -# Error: Can’t catch me not ok 25 - Error: Can’t catch me --- name: Error @@ -301,16 +276,12 @@ not ok 25 - Error: Can’t catch me (test-tap/fixture/report/regular/uncaught-exception.js:5:9) ... ---tty-stream-chunk-separator -# uncaught-exception.js exited with a non-zero exit code: 1 not ok 26 - uncaught-exception.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# unhandled-rejection › passes -ok 27 - unhandled-rejection › passes +ok 27 - unhandled-rejection › passes ---tty-stream-chunk-separator -# unhandled-rejection › unhandled non-error rejection -ok 28 - unhandled-rejection › unhandled non-error rejection +ok 28 - unhandled-rejection › unhandled non-error rejection ---tty-stream-chunk-separator -# Error: Can’t catch me not ok 29 - Error: Can’t catch me --- name: Error @@ -318,7 +289,6 @@ not ok 29 - Error: Can’t catch me at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.js:4:17)' ... ---tty-stream-chunk-separator -# unhandled-rejection not ok 30 - unhandled-rejection --- message: Non-error object diff --git a/test-tap/reporters/tap.regular.v14.log b/test-tap/reporters/tap.regular.v14.log index 3361eaf98..a8ab2f46a 100644 --- a/test-tap/reporters/tap.regular.v14.log +++ b/test-tap/reporters/tap.regular.v14.log @@ -1,6 +1,5 @@ TAP version 13 ---tty-stream-chunk-separator -# TypeError: test.serial.test is not a function not ok 1 - TypeError: test.serial.test is not a function --- name: TypeError @@ -8,11 +7,9 @@ not ok 1 - TypeError: test.serial.test is not a function at: 'Object. (test-tap/fixture/report/regular/bad-test-chain.js:3:13)' ... ---tty-stream-chunk-separator -# bad-test-chain.js exited with a non-zero exit code: 1 not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# nested-objects › format with max depth 4 -not ok 3 - nested-objects › format with max depth 4 +not ok 3 - nested-objects › format with max depth 4 --- name: AssertionError assertion: deepEqual @@ -35,8 +32,7 @@ not ok 3 - nested-objects › format with max depth 4 at: 'test-tap/fixture/report/regular/nested-objects.js:28:4' ... ---tty-stream-chunk-separator -# nested-objects › format like with max depth 4 -not ok 4 - nested-objects › format like with max depth 4 +not ok 4 - nested-objects › format like with max depth 4 --- name: AssertionError assertion: like @@ -57,21 +53,19 @@ not ok 4 - nested-objects › format like with max depth 4 ---tty-stream-chunk-separator # output-in-hook › before hook ---tty-stream-chunk-separator - # before +# before ---tty-stream-chunk-separator # output-in-hook › beforeEach hook for passing test ---tty-stream-chunk-separator - # beforeEach +# beforeEach ---tty-stream-chunk-separator # output-in-hook › beforeEach hook for failing test ---tty-stream-chunk-separator - # beforeEach +# beforeEach ---tty-stream-chunk-separator -# output-in-hook › passing test -ok 5 - output-in-hook › passing test +ok 5 - output-in-hook › passing test ---tty-stream-chunk-separator -# output-in-hook › failing test -not ok 6 - output-in-hook › failing test +not ok 6 - output-in-hook › failing test --- name: AssertionError message: Test failed via `t.fail()` @@ -81,31 +75,27 @@ not ok 6 - output-in-hook › failing test ---tty-stream-chunk-separator # output-in-hook › afterEach hook for passing test ---tty-stream-chunk-separator - # afterEach +# afterEach ---tty-stream-chunk-separator # output-in-hook › afterEach.always hook for failing test ---tty-stream-chunk-separator - # afterEachAlways +# afterEachAlways ---tty-stream-chunk-separator # output-in-hook › afterEach.always hook for passing test ---tty-stream-chunk-separator - # afterEachAlways +# afterEachAlways ---tty-stream-chunk-separator # output-in-hook › cleanup ---tty-stream-chunk-separator - # afterAlways +# afterAlways ---tty-stream-chunk-separator -# test › skip -ok 7 - test › skip # SKIP +ok 7 - test › skip # SKIP ---tty-stream-chunk-separator -# test › todo -not ok 8 - test › todo # TODO +not ok 8 - test › todo # TODO ---tty-stream-chunk-separator -# test › passes -ok 9 - test › passes +ok 9 - test › passes ---tty-stream-chunk-separator -# test › fails -not ok 10 - test › fails +not ok 10 - test › fails --- name: AssertionError message: Test failed via `t.fail()` @@ -113,11 +103,9 @@ not ok 10 - test › fails at: 'test-tap/fixture/report/regular/test.js:9:22' ... ---tty-stream-chunk-separator -# test › known failure -ok 11 - test › known failure +ok 11 - test › known failure ---tty-stream-chunk-separator -# test › no longer failing -not ok 12 - test › no longer failing +not ok 12 - test › no longer failing --- name: Error message: >- @@ -126,10 +114,9 @@ not ok 12 - test › no longer failing at: '' ... ---tty-stream-chunk-separator -# test › logs -not ok 13 - test › logs - * hello - * world +not ok 13 - test › logs +# hello +# world --- name: AssertionError message: Test failed via `t.fail()` @@ -137,8 +124,7 @@ not ok 13 - test › logs at: 'test-tap/fixture/report/regular/test.js:18:4' ... ---tty-stream-chunk-separator -# test › formatted -not ok 14 - test › formatted +not ok 14 - test › formatted --- name: AssertionError assertion: deepEqual @@ -149,8 +135,7 @@ not ok 14 - test › formatted at: 'test-tap/fixture/report/regular/test.js:22:4' ... ---tty-stream-chunk-separator -# test › power-assert -not ok 15 - test › power-assert +not ok 15 - test › power-assert --- name: AssertionError assertion: assert @@ -160,8 +145,7 @@ not ok 15 - test › power-assert at: 'test-tap/fixture/report/regular/test.js:27:4' ... ---tty-stream-chunk-separator -# test › bad throws -not ok 16 - test › bad throws +not ok 16 - test › bad throws --- name: AssertionError message: Improper usage of `t.throws()` detected @@ -176,8 +160,7 @@ not ok 16 - test › bad throws test-tap/fixture/report/regular/test.js:35:11 ... ---tty-stream-chunk-separator -# test › bad notThrows -not ok 17 - test › bad notThrows +not ok 17 - test › bad notThrows --- name: AssertionError message: Improper usage of `t.notThrows()` detected @@ -192,8 +175,7 @@ not ok 17 - test › bad notThrows test-tap/fixture/report/regular/test.js:43:14 ... ---tty-stream-chunk-separator -# test › implementation throws non-error -not ok 18 - test › implementation throws non-error +not ok 18 - test › implementation throws non-error --- name: AssertionError message: Error thrown in test @@ -202,8 +184,7 @@ not ok 18 - test › implementation throws non-error at: '' ... ---tty-stream-chunk-separator -# traces-in-t-throws › throws -not ok 19 - traces-in-t-throws › throws +not ok 19 - traces-in-t-throws › throws --- name: AssertionError assertion: throws @@ -219,8 +200,7 @@ not ok 19 - traces-in-t-throws › throws test-tap/fixture/report/regular/traces-in-t-throws.js:12:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › notThrows -not ok 20 - traces-in-t-throws › notThrows +not ok 20 - traces-in-t-throws › notThrows --- name: AssertionError assertion: notThrows @@ -235,8 +215,7 @@ not ok 20 - traces-in-t-throws › notThrows test-tap/fixture/report/regular/traces-in-t-throws.js:16:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › notThrowsAsync -not ok 21 - traces-in-t-throws › notThrowsAsync +not ok 21 - traces-in-t-throws › notThrowsAsync --- name: AssertionError assertion: notThrowsAsync @@ -251,8 +230,7 @@ not ok 21 - traces-in-t-throws › notThrowsAsync test-tap/fixture/report/regular/traces-in-t-throws.js:20:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › throwsAsync -not ok 22 - traces-in-t-throws › throwsAsync +not ok 22 - traces-in-t-throws › throwsAsync --- name: AssertionError assertion: throwsAsync @@ -270,8 +248,7 @@ not ok 22 - traces-in-t-throws › throwsAsync test-tap/fixture/report/regular/traces-in-t-throws.js:24:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › throwsAsync different error -not ok 23 - traces-in-t-throws › throwsAsync different error +not ok 23 - traces-in-t-throws › throwsAsync different error --- name: AssertionError assertion: throwsAsync @@ -288,10 +265,8 @@ not ok 23 - traces-in-t-throws › throwsAsync different erro test-tap/fixture/report/regular/traces-in-t-throws.js:28:11 ... ---tty-stream-chunk-separator -# uncaught-exception › passes -ok 24 - uncaught-exception › passes +ok 24 - uncaught-exception › passes ---tty-stream-chunk-separator -# Error: Can’t catch me not ok 25 - Error: Can’t catch me --- name: Error @@ -301,16 +276,12 @@ not ok 25 - Error: Can’t catch me (test-tap/fixture/report/regular/uncaught-exception.js:5:9) ... ---tty-stream-chunk-separator -# uncaught-exception.js exited with a non-zero exit code: 1 not ok 26 - uncaught-exception.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# unhandled-rejection › passes -ok 27 - unhandled-rejection › passes +ok 27 - unhandled-rejection › passes ---tty-stream-chunk-separator -# unhandled-rejection › unhandled non-error rejection -ok 28 - unhandled-rejection › unhandled non-error rejection +ok 28 - unhandled-rejection › unhandled non-error rejection ---tty-stream-chunk-separator -# Error: Can’t catch me not ok 29 - Error: Can’t catch me --- name: Error @@ -318,7 +289,6 @@ not ok 29 - Error: Can’t catch me at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.js:4:17)' ... ---tty-stream-chunk-separator -# unhandled-rejection not ok 30 - unhandled-rejection --- message: Non-error object diff --git a/test-tap/reporters/tap.regular.v15.log b/test-tap/reporters/tap.regular.v15.log index 3361eaf98..a8ab2f46a 100644 --- a/test-tap/reporters/tap.regular.v15.log +++ b/test-tap/reporters/tap.regular.v15.log @@ -1,6 +1,5 @@ TAP version 13 ---tty-stream-chunk-separator -# TypeError: test.serial.test is not a function not ok 1 - TypeError: test.serial.test is not a function --- name: TypeError @@ -8,11 +7,9 @@ not ok 1 - TypeError: test.serial.test is not a function at: 'Object. (test-tap/fixture/report/regular/bad-test-chain.js:3:13)' ... ---tty-stream-chunk-separator -# bad-test-chain.js exited with a non-zero exit code: 1 not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# nested-objects › format with max depth 4 -not ok 3 - nested-objects › format with max depth 4 +not ok 3 - nested-objects › format with max depth 4 --- name: AssertionError assertion: deepEqual @@ -35,8 +32,7 @@ not ok 3 - nested-objects › format with max depth 4 at: 'test-tap/fixture/report/regular/nested-objects.js:28:4' ... ---tty-stream-chunk-separator -# nested-objects › format like with max depth 4 -not ok 4 - nested-objects › format like with max depth 4 +not ok 4 - nested-objects › format like with max depth 4 --- name: AssertionError assertion: like @@ -57,21 +53,19 @@ not ok 4 - nested-objects › format like with max depth 4 ---tty-stream-chunk-separator # output-in-hook › before hook ---tty-stream-chunk-separator - # before +# before ---tty-stream-chunk-separator # output-in-hook › beforeEach hook for passing test ---tty-stream-chunk-separator - # beforeEach +# beforeEach ---tty-stream-chunk-separator # output-in-hook › beforeEach hook for failing test ---tty-stream-chunk-separator - # beforeEach +# beforeEach ---tty-stream-chunk-separator -# output-in-hook › passing test -ok 5 - output-in-hook › passing test +ok 5 - output-in-hook › passing test ---tty-stream-chunk-separator -# output-in-hook › failing test -not ok 6 - output-in-hook › failing test +not ok 6 - output-in-hook › failing test --- name: AssertionError message: Test failed via `t.fail()` @@ -81,31 +75,27 @@ not ok 6 - output-in-hook › failing test ---tty-stream-chunk-separator # output-in-hook › afterEach hook for passing test ---tty-stream-chunk-separator - # afterEach +# afterEach ---tty-stream-chunk-separator # output-in-hook › afterEach.always hook for failing test ---tty-stream-chunk-separator - # afterEachAlways +# afterEachAlways ---tty-stream-chunk-separator # output-in-hook › afterEach.always hook for passing test ---tty-stream-chunk-separator - # afterEachAlways +# afterEachAlways ---tty-stream-chunk-separator # output-in-hook › cleanup ---tty-stream-chunk-separator - # afterAlways +# afterAlways ---tty-stream-chunk-separator -# test › skip -ok 7 - test › skip # SKIP +ok 7 - test › skip # SKIP ---tty-stream-chunk-separator -# test › todo -not ok 8 - test › todo # TODO +not ok 8 - test › todo # TODO ---tty-stream-chunk-separator -# test › passes -ok 9 - test › passes +ok 9 - test › passes ---tty-stream-chunk-separator -# test › fails -not ok 10 - test › fails +not ok 10 - test › fails --- name: AssertionError message: Test failed via `t.fail()` @@ -113,11 +103,9 @@ not ok 10 - test › fails at: 'test-tap/fixture/report/regular/test.js:9:22' ... ---tty-stream-chunk-separator -# test › known failure -ok 11 - test › known failure +ok 11 - test › known failure ---tty-stream-chunk-separator -# test › no longer failing -not ok 12 - test › no longer failing +not ok 12 - test › no longer failing --- name: Error message: >- @@ -126,10 +114,9 @@ not ok 12 - test › no longer failing at: '' ... ---tty-stream-chunk-separator -# test › logs -not ok 13 - test › logs - * hello - * world +not ok 13 - test › logs +# hello +# world --- name: AssertionError message: Test failed via `t.fail()` @@ -137,8 +124,7 @@ not ok 13 - test › logs at: 'test-tap/fixture/report/regular/test.js:18:4' ... ---tty-stream-chunk-separator -# test › formatted -not ok 14 - test › formatted +not ok 14 - test › formatted --- name: AssertionError assertion: deepEqual @@ -149,8 +135,7 @@ not ok 14 - test › formatted at: 'test-tap/fixture/report/regular/test.js:22:4' ... ---tty-stream-chunk-separator -# test › power-assert -not ok 15 - test › power-assert +not ok 15 - test › power-assert --- name: AssertionError assertion: assert @@ -160,8 +145,7 @@ not ok 15 - test › power-assert at: 'test-tap/fixture/report/regular/test.js:27:4' ... ---tty-stream-chunk-separator -# test › bad throws -not ok 16 - test › bad throws +not ok 16 - test › bad throws --- name: AssertionError message: Improper usage of `t.throws()` detected @@ -176,8 +160,7 @@ not ok 16 - test › bad throws test-tap/fixture/report/regular/test.js:35:11 ... ---tty-stream-chunk-separator -# test › bad notThrows -not ok 17 - test › bad notThrows +not ok 17 - test › bad notThrows --- name: AssertionError message: Improper usage of `t.notThrows()` detected @@ -192,8 +175,7 @@ not ok 17 - test › bad notThrows test-tap/fixture/report/regular/test.js:43:14 ... ---tty-stream-chunk-separator -# test › implementation throws non-error -not ok 18 - test › implementation throws non-error +not ok 18 - test › implementation throws non-error --- name: AssertionError message: Error thrown in test @@ -202,8 +184,7 @@ not ok 18 - test › implementation throws non-error at: '' ... ---tty-stream-chunk-separator -# traces-in-t-throws › throws -not ok 19 - traces-in-t-throws › throws +not ok 19 - traces-in-t-throws › throws --- name: AssertionError assertion: throws @@ -219,8 +200,7 @@ not ok 19 - traces-in-t-throws › throws test-tap/fixture/report/regular/traces-in-t-throws.js:12:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › notThrows -not ok 20 - traces-in-t-throws › notThrows +not ok 20 - traces-in-t-throws › notThrows --- name: AssertionError assertion: notThrows @@ -235,8 +215,7 @@ not ok 20 - traces-in-t-throws › notThrows test-tap/fixture/report/regular/traces-in-t-throws.js:16:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › notThrowsAsync -not ok 21 - traces-in-t-throws › notThrowsAsync +not ok 21 - traces-in-t-throws › notThrowsAsync --- name: AssertionError assertion: notThrowsAsync @@ -251,8 +230,7 @@ not ok 21 - traces-in-t-throws › notThrowsAsync test-tap/fixture/report/regular/traces-in-t-throws.js:20:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › throwsAsync -not ok 22 - traces-in-t-throws › throwsAsync +not ok 22 - traces-in-t-throws › throwsAsync --- name: AssertionError assertion: throwsAsync @@ -270,8 +248,7 @@ not ok 22 - traces-in-t-throws › throwsAsync test-tap/fixture/report/regular/traces-in-t-throws.js:24:4 ... ---tty-stream-chunk-separator -# traces-in-t-throws › throwsAsync different error -not ok 23 - traces-in-t-throws › throwsAsync different error +not ok 23 - traces-in-t-throws › throwsAsync different error --- name: AssertionError assertion: throwsAsync @@ -288,10 +265,8 @@ not ok 23 - traces-in-t-throws › throwsAsync different erro test-tap/fixture/report/regular/traces-in-t-throws.js:28:11 ... ---tty-stream-chunk-separator -# uncaught-exception › passes -ok 24 - uncaught-exception › passes +ok 24 - uncaught-exception › passes ---tty-stream-chunk-separator -# Error: Can’t catch me not ok 25 - Error: Can’t catch me --- name: Error @@ -301,16 +276,12 @@ not ok 25 - Error: Can’t catch me (test-tap/fixture/report/regular/uncaught-exception.js:5:9) ... ---tty-stream-chunk-separator -# uncaught-exception.js exited with a non-zero exit code: 1 not ok 26 - uncaught-exception.js exited with a non-zero exit code: 1 ---tty-stream-chunk-separator -# unhandled-rejection › passes -ok 27 - unhandled-rejection › passes +ok 27 - unhandled-rejection › passes ---tty-stream-chunk-separator -# unhandled-rejection › unhandled non-error rejection -ok 28 - unhandled-rejection › unhandled non-error rejection +ok 28 - unhandled-rejection › unhandled non-error rejection ---tty-stream-chunk-separator -# Error: Can’t catch me not ok 29 - Error: Can’t catch me --- name: Error @@ -318,7 +289,6 @@ not ok 29 - Error: Can’t catch me at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.js:4:17)' ... ---tty-stream-chunk-separator -# unhandled-rejection not ok 30 - unhandled-rejection --- message: Non-error object