Skip to content

Commit

Permalink
✅ update tap reporters
Browse files Browse the repository at this point in the history
  • Loading branch information
Irvenae committed Apr 12, 2023
1 parent 8a5b07c commit 82062a4
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 133 deletions.
4 changes: 4 additions & 0 deletions test-tap/reporters/default.edgecases.v16.log
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
---tty-stream-chunk-separator
Uncaught exception in ast-syntax-error.cjs

~/test-tap/fixture/report/edgecases/ast-syntax-error.cjs:3
const fn = do {
^^

SyntaxError: Unexpected token 'do'

---tty-stream-chunk-separator
Expand Down
26 changes: 10 additions & 16 deletions test-tap/reporters/default.regular.v14.log
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,7 @@
---tty-stream-chunk-separator
✘ [fail]: test › formatted
---tty-stream-chunk-separator
✘ Internal error when running test.cjs
TypeError: Cannot read property 'matcherResult' of null
TypeError: Cannot read property 'matcherResult' of null
 at isExternalAssertError (file://~/lib/test.js:12:12)
 at Test.run (file://~/lib/test.js:532:8)
 at Runner.runSingle (file://~/lib/runner.js:285:33)
 at Runner.runTest (file://~/lib/runner.js:367:30)
 at processTicksAndRejections (internal/process/task_queues.js:95:5)
 at async Promise.all (index 6)
 at async file://~/lib/runner.js:532:21
 at async Runner.start (file://~/lib/runner.js:540:15)


---tty-stream-chunk-separator
✘ test.cjs exited with a non-zero exit code: 1
✘ [fail]: test › implementation throws non-error Error thrown in test
---tty-stream-chunk-separator
✘ [fail]: traces-in-t-throws › throws
---tty-stream-chunk-separator
Expand Down Expand Up @@ -247,6 +233,14 @@



test › implementation throws non-error

Error thrown in test:

null



traces-in-t-throws › throws

traces-in-t-throws.cjs:12
Expand Down Expand Up @@ -354,7 +348,7 @@

─

12 tests failed
13 tests failed
1 known failure
1 test skipped
1 test todo
Expand Down
26 changes: 10 additions & 16 deletions test-tap/reporters/default.regular.v16.log
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,7 @@
---tty-stream-chunk-separator
✘ [fail]: test › formatted
---tty-stream-chunk-separator
✘ Internal error when running test.cjs
TypeError: Cannot read properties of null (reading 'matcherResult')
TypeError: Cannot read properties of null (reading 'matcherResult')
 at isExternalAssertError (file://~/lib/test.js:12:12)
 at Test.run (file://~/lib/test.js:532:8)
 at Runner.runSingle (file://~/lib/runner.js:285:33)
 at Runner.runTest (file://~/lib/runner.js:367:30)
 at processTicksAndRejections (node:internal/process/task_queues:96:5)
 at async Promise.all (index 6)
 at async file://~/lib/runner.js:532:21
 at async Runner.start (file://~/lib/runner.js:540:15)


---tty-stream-chunk-separator
✘ test.cjs exited with a non-zero exit code: 1
✘ [fail]: test › implementation throws non-error Error thrown in test
---tty-stream-chunk-separator
✘ [fail]: traces-in-t-throws › throws
---tty-stream-chunk-separator
Expand Down Expand Up @@ -247,6 +233,14 @@



test › implementation throws non-error

Error thrown in test:

null



traces-in-t-throws › throws

traces-in-t-throws.cjs:12
Expand Down Expand Up @@ -354,7 +348,7 @@

─

12 tests failed
13 tests failed
1 known failure
1 test skipped
1 test todo
Expand Down
26 changes: 10 additions & 16 deletions test-tap/reporters/default.regular.v18.log
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,7 @@
---tty-stream-chunk-separator
✘ [fail]: test › formatted
---tty-stream-chunk-separator
✘ Internal error when running test.cjs
TypeError: Cannot read properties of null (reading 'matcherResult')
TypeError: Cannot read properties of null (reading 'matcherResult')
 at isExternalAssertError (file://~/lib/test.js:12:12)
 at Test.run (file://~/lib/test.js:532:8)
 at Runner.runSingle (file://~/lib/runner.js:285:33)
 at Runner.runTest (file://~/lib/runner.js:367:30)
 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
 at async Promise.all (index 6)
 at async file://~/lib/runner.js:532:21
 at async Runner.start (file://~/lib/runner.js:540:15)


---tty-stream-chunk-separator
✘ test.cjs exited with a non-zero exit code: 1
✘ [fail]: test › implementation throws non-error Error thrown in test
---tty-stream-chunk-separator
✘ [fail]: traces-in-t-throws › throws
---tty-stream-chunk-separator
Expand Down Expand Up @@ -247,6 +233,14 @@



test › implementation throws non-error

Error thrown in test:

null



traces-in-t-throws › throws

traces-in-t-throws.cjs:12
Expand Down Expand Up @@ -354,7 +348,7 @@

─

12 tests failed
13 tests failed
1 known failure
1 test skipped
1 test todo
Expand Down
6 changes: 5 additions & 1 deletion test-tap/reporters/tap.edgecases.v16.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
TAP version 13
---tty-stream-chunk-separator
not ok 1 - SyntaxError: Unexpected token 'do'
not ok 1 - ~/test-tap/fixture/report/edgecases/ast-syntax-error.cjs:3
const fn = do {
^^

SyntaxError: Unexpected token 'do'
---
name: SyntaxError
message: Unexpected token 'do'
Expand Down
47 changes: 19 additions & 28 deletions test-tap/reporters/tap.regular.v14.log
Original file line number Diff line number Diff line change
Expand Up @@ -135,25 +135,16 @@ not ok 14 - test › formatted
at: 'test-tap/fixture/report/regular/test.cjs:22:4'
...
---tty-stream-chunk-separator
not ok 15 - TypeError: Cannot read property 'matcherResult' of null
not ok 15 - test › implementation throws non-error
---
name: TypeError
message: Cannot read property 'matcherResult' of null
at: |-
TypeError: Cannot read property 'matcherResult' of null
at isExternalAssertError (file://~/lib/test.js:12:12)
at Test.run (file://~/lib/test.js:532:8)
at Runner.runSingle (file://~/lib/runner.js:285:33)
at Runner.runTest (file://~/lib/runner.js:367:30)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Promise.all (index 6)
at async file://~/lib/runner.js:532:21
at async Runner.start (file://~/lib/runner.js:540:15)
name: AssertionError
message: Error thrown in test
values:
'Error thrown in test:': 'null'
at: ''
...
---tty-stream-chunk-separator
not ok 16 - test.cjs exited with a non-zero exit code: 1
---tty-stream-chunk-separator
not ok 17 - traces-in-t-throws › throws
not ok 16 - traces-in-t-throws › throws
---
name: AssertionError
assertion: throws
Expand All @@ -172,7 +163,7 @@ not ok 17 - traces-in-t-throws › throws
test-tap/fixture/report/regular/traces-in-t-throws.cjs:12:4
...
---tty-stream-chunk-separator
not ok 18 - traces-in-t-throws › notThrows
not ok 17 - traces-in-t-throws › notThrows
---
name: AssertionError
assertion: notThrows
Expand All @@ -187,7 +178,7 @@ not ok 18 - traces-in-t-throws › notThrows
test-tap/fixture/report/regular/traces-in-t-throws.cjs:16:4
...
---tty-stream-chunk-separator
not ok 19 - traces-in-t-throws › notThrowsAsync
not ok 18 - traces-in-t-throws › notThrowsAsync
---
name: AssertionError
assertion: notThrowsAsync
Expand All @@ -202,7 +193,7 @@ not ok 19 - traces-in-t-throws › notThrowsAsync
test-tap/fixture/report/regular/traces-in-t-throws.cjs:20:4
...
---tty-stream-chunk-separator
not ok 20 - traces-in-t-throws › throwsAsync
not ok 19 - traces-in-t-throws › throwsAsync
---
name: AssertionError
assertion: throwsAsync
Expand All @@ -220,7 +211,7 @@ not ok 20 - traces-in-t-throws › throwsAsync
test-tap/fixture/report/regular/traces-in-t-throws.cjs:24:4
...
---tty-stream-chunk-separator
not ok 21 - traces-in-t-throws › throwsAsync different error
not ok 20 - traces-in-t-throws › throwsAsync different error
---
name: AssertionError
assertion: throwsAsync
Expand All @@ -237,9 +228,9 @@ not ok 21 - traces-in-t-throws › throwsAsync different error
test-tap/fixture/report/regular/traces-in-t-throws.cjs:27:44
...
---tty-stream-chunk-separator
ok 22 - uncaught-exception › passes
ok 21 - uncaught-exception › passes
---tty-stream-chunk-separator
not ok 23 - Error: Can’t catch me
not ok 22 - Error: Can’t catch me
---
name: Error
message: Can’t catch me
Expand All @@ -248,20 +239,20 @@ not ok 23 - Error: Can’t catch me
(test-tap/fixture/report/regular/uncaught-exception.cjs:5:9)
...
---tty-stream-chunk-separator
not ok 24 - uncaught-exception.cjs exited with a non-zero exit code: 1
not ok 23 - uncaught-exception.cjs exited with a non-zero exit code: 1
---tty-stream-chunk-separator
ok 25 - unhandled-rejection › passes
ok 24 - unhandled-rejection › passes
---tty-stream-chunk-separator
ok 26 - unhandled-rejection › unhandled non-error rejection
ok 25 - unhandled-rejection › unhandled non-error rejection
---tty-stream-chunk-separator
not ok 27 - Error: Can’t catch me
not ok 26 - Error: Can’t catch me
---
name: Error
message: Can’t catch me
at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.cjs:4:17)'
...
---tty-stream-chunk-separator
not ok 28 - unhandled-rejection
not ok 27 - unhandled-rejection
---
message: Non-error object
formatted: 'null'
Expand All @@ -272,6 +263,6 @@ not ok 28 - unhandled-rejection
# tests 20
# pass 6
# skip 1
# fail 22
# fail 20

---tty-stream-chunk-separator
47 changes: 19 additions & 28 deletions test-tap/reporters/tap.regular.v16.log
Original file line number Diff line number Diff line change
Expand Up @@ -135,25 +135,16 @@ not ok 14 - test › formatted
at: 'test-tap/fixture/report/regular/test.cjs:22:4'
...
---tty-stream-chunk-separator
not ok 15 - TypeError: Cannot read properties of null (reading 'matcherResult')
not ok 15 - test › implementation throws non-error
---
name: TypeError
message: Cannot read properties of null (reading 'matcherResult')
at: |-
TypeError: Cannot read properties of null (reading 'matcherResult')
at isExternalAssertError (file://~/lib/test.js:12:12)
at Test.run (file://~/lib/test.js:532:8)
at Runner.runSingle (file://~/lib/runner.js:285:33)
at Runner.runTest (file://~/lib/runner.js:367:30)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 6)
at async file://~/lib/runner.js:532:21
at async Runner.start (file://~/lib/runner.js:540:15)
name: AssertionError
message: Error thrown in test
values:
'Error thrown in test:': 'null'
at: ''
...
---tty-stream-chunk-separator
not ok 16 - test.cjs exited with a non-zero exit code: 1
---tty-stream-chunk-separator
not ok 17 - traces-in-t-throws › throws
not ok 16 - traces-in-t-throws › throws
---
name: AssertionError
assertion: throws
Expand All @@ -172,7 +163,7 @@ not ok 17 - traces-in-t-throws › throws
test-tap/fixture/report/regular/traces-in-t-throws.cjs:12:4
...
---tty-stream-chunk-separator
not ok 18 - traces-in-t-throws › notThrows
not ok 17 - traces-in-t-throws › notThrows
---
name: AssertionError
assertion: notThrows
Expand All @@ -187,7 +178,7 @@ not ok 18 - traces-in-t-throws › notThrows
test-tap/fixture/report/regular/traces-in-t-throws.cjs:16:4
...
---tty-stream-chunk-separator
not ok 19 - traces-in-t-throws › notThrowsAsync
not ok 18 - traces-in-t-throws › notThrowsAsync
---
name: AssertionError
assertion: notThrowsAsync
Expand All @@ -202,7 +193,7 @@ not ok 19 - traces-in-t-throws › notThrowsAsync
test-tap/fixture/report/regular/traces-in-t-throws.cjs:20:4
...
---tty-stream-chunk-separator
not ok 20 - traces-in-t-throws › throwsAsync
not ok 19 - traces-in-t-throws › throwsAsync
---
name: AssertionError
assertion: throwsAsync
Expand All @@ -220,7 +211,7 @@ not ok 20 - traces-in-t-throws › throwsAsync
test-tap/fixture/report/regular/traces-in-t-throws.cjs:24:4
...
---tty-stream-chunk-separator
not ok 21 - traces-in-t-throws › throwsAsync different error
not ok 20 - traces-in-t-throws › throwsAsync different error
---
name: AssertionError
assertion: throwsAsync
Expand All @@ -237,9 +228,9 @@ not ok 21 - traces-in-t-throws › throwsAsync different error
test-tap/fixture/report/regular/traces-in-t-throws.cjs:27:44
...
---tty-stream-chunk-separator
ok 22 - uncaught-exception › passes
ok 21 - uncaught-exception › passes
---tty-stream-chunk-separator
not ok 23 - Error: Can’t catch me
not ok 22 - Error: Can’t catch me
---
name: Error
message: Can’t catch me
Expand All @@ -248,20 +239,20 @@ not ok 23 - Error: Can’t catch me
(test-tap/fixture/report/regular/uncaught-exception.cjs:5:9)
...
---tty-stream-chunk-separator
not ok 24 - uncaught-exception.cjs exited with a non-zero exit code: 1
not ok 23 - uncaught-exception.cjs exited with a non-zero exit code: 1
---tty-stream-chunk-separator
ok 25 - unhandled-rejection › passes
ok 24 - unhandled-rejection › passes
---tty-stream-chunk-separator
ok 26 - unhandled-rejection › unhandled non-error rejection
ok 25 - unhandled-rejection › unhandled non-error rejection
---tty-stream-chunk-separator
not ok 27 - Error: Can’t catch me
not ok 26 - Error: Can’t catch me
---
name: Error
message: Can’t catch me
at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.cjs:4:17)'
...
---tty-stream-chunk-separator
not ok 28 - unhandled-rejection
not ok 27 - unhandled-rejection
---
message: Non-error object
formatted: 'null'
Expand All @@ -272,6 +263,6 @@ not ok 28 - unhandled-rejection
# tests 20
# pass 6
# skip 1
# fail 22
# fail 20

---tty-stream-chunk-separator

0 comments on commit 82062a4

Please sign in to comment.