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>
60 lines
1,016 B
Text
60 lines
1,016 B
Text
[32m✔ should pass [90m(*ms)[39m[39m
|
||
[31m✖ should fail [90m(*ms)[39m[39m
|
||
Error: fail
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
|
||
[90m﹣ should skip [90m(*ms)[39m # SKIP[39m
|
||
▶ parent
|
||
[31m✖ should fail [90m(*ms)[39m[39m
|
||
Error: fail
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
|
||
[31m✖ should pass but parent fail [90m(*ms)[39m[39m
|
||
[32m'test did not finish before its parent and was cancelled'[39m
|
||
|
||
[31m▶ [39mparent [90m(*ms)[39m
|
||
|
||
[34mℹ tests 6[39m
|
||
[34mℹ suites 0[39m
|
||
[34mℹ pass 1[39m
|
||
[34mℹ fail 3[39m
|
||
[34mℹ cancelled 1[39m
|
||
[34mℹ skipped 1[39m
|
||
[34mℹ todo 0[39m
|
||
[34mℹ duration_ms *[39m
|
||
|
||
[31m✖ failing tests:[39m
|
||
|
||
*
|
||
[31m✖ should fail [90m(*ms)[39m[39m
|
||
Error: fail
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
|
||
*
|
||
[31m✖ should fail [90m(*ms)[39m[39m
|
||
Error: fail
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
*[39m
|
||
|
||
*
|
||
[31m✖ should pass but parent fail [90m(*ms)[39m[39m
|
||
[32m'test did not finish before its parent and was cancelled'[39m
|