This commit adds each test's line and column number to the reporter output. This will aid in debugging test suite failures when error stacks are not helpful, test suites are large, or tests have the same name. This data is also exposed on the spec reporter. This commit also replaces the filename that was previously being reported, with the filename where the test actually exists. These are normally correct, but could be wrong if tests were run from a file other than the user's entrypoint. PR-URL: https://github.com/nodejs/node/pull/48975 Fixes: https://github.com/nodejs/node/issues/48457 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
31 lines
577 B
Text
31 lines
577 B
Text
TAP version 13
|
|
# Subtest: escaped description \\ \# \\\#\\ \\n \\t \\f \\v \\b \\r
|
|
ok 1 - escaped description \\ \# \\\#\\ \\n \\t \\f \\v \\b \\r
|
|
---
|
|
duration_ms: *
|
|
...
|
|
# Subtest: escaped skip message
|
|
ok 2 - escaped skip message # SKIP \#skip
|
|
---
|
|
duration_ms: *
|
|
...
|
|
# Subtest: escaped todo message
|
|
ok 3 - escaped todo message # TODO \#todo
|
|
---
|
|
duration_ms: *
|
|
...
|
|
# Subtest: escaped diagnostic
|
|
ok 4 - escaped diagnostic
|
|
---
|
|
duration_ms: *
|
|
...
|
|
# \#diagnostic
|
|
1..4
|
|
# tests 4
|
|
# suites 0
|
|
# pass 2
|
|
# fail 0
|
|
# cancelled 0
|
|
# skipped 1
|
|
# todo 1
|
|
# duration_ms *
|