You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ $(npm bin)/tap --bail -R spec test.jstest.js foo ✓ expect truthy value bar ✓ expect truthy value 1) test count exceeds plan 2) test count !== plan 2 passing (241ms) 2 failing 1) test.js test count exceeds plan: Error: test count exceeds plan at Promise.resolve.then (test.js:9:9) 2) test.js test count !== plan: test count !== plan + expected - actual -3 +1 3) test count !== plan
I can't tell in which test the plan was exceeded. The error is printed once all tests have completed.
It's fine when using the TAP reporter:
❯ $(npm bin)/tap --bail test.jstest.js ............................................... 2/3 not ok test count exceeds plan stack: | Promise.resolve.then (test.js:9:9) at: line: 9 column: 9 file: test.js function: Promise.resolve.then test: foo plan: 1 source: | t.ok(true)Bail out! # test count exceeds plantotal ................................................. 2/4 2 passing (239ms) 2 failing
And rerun with the spec reporter, the output is as expected:
❯ $(npm bin)/tap --bail -R spec test.jstest.js foo ✓ expect truthy value 1) test count exceeds plan 2) test count !== plan 1 passing (253ms) 2 failing 1) test.js test count exceeds plan: Error: test count exceeds plan at Test.t (test.js:6:5) at Object.<anonymous> (test.js:3:1) 2) test.js test count !== plan: test count !== plan + expected - actual -2 +1 3) test count !== plan
The text was updated successfully, but these errors were encountered:
Using
tap@10.1.0
.With
test.js
:Output:
I can't tell in which test the plan was exceeded. The error is printed once all tests have completed.
It's fine when using the TAP reporter:
If I modify
test.js
to:And rerun with the spec reporter, the output is as expected:
The text was updated successfully, but these errors were encountered: