test: improve lib/internal/test_runner/test.js coverage#42745
test: improve lib/internal/test_runner/test.js coverage#42745nodejs-github-bot merged 1 commit intonodejs:masterfrom
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
cjihrig
left a comment
There was a problem hiding this comment.
LGTM, but this has conflicts.
|
@cjihrig Thanks, I resolved conflicts. |
test/message/test_runner_output.out
Outdated
| duration_ms: * | ||
| failureType: 'testCodeFailure' | ||
| error: 'thrown from subtest sync throw fails at first' | ||
| code: ERR_TEST_FAILURE |
There was a problem hiding this comment.
Oh, I think the code fields here and below need to be in quotes now. The CI is probably going to fail because of it.
There was a problem hiding this comment.
@cjihrig Oops, I overlooked it. I changed to wrapping error code in single quotes. Thanks again.
|
@fossamagna can you please rebase on top of |
|
There is a typo in the first commit message: "coveage" -> coverage". |
|
@aduh95 Sorry. I will rebase top of |
330f986 to
e9da7bf
Compare
|
@fossamagna you can force push on this PR branch. |
|
@lpinca Thanks, I rebase and force push. |
|
Landed in 8cbc390 |
PR-URL: #42745 Refs: https://coverage.nodejs.org/coverage-24adba675179ebba/lib/internal/test_runner/test.js.html#L371 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Sadly, this is part of the built-in test-runner, which is not landed in v16.x |
PR-URL: nodejs/node#42745 Refs: https://coverage.nodejs.org/coverage-24adba675179ebba/lib/internal/test_runner/test.js.html#L371 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs/node#42745 Refs: https://coverage.nodejs.org/coverage-24adba675179ebba/lib/internal/test_runner/test.js.html#L371 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs/node#42745 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #42745 Refs: https://coverage.nodejs.org/coverage-24adba675179ebba/lib/internal/test_runner/test.js.html#L371 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs/node#42745 Refs: https://coverage.nodejs.org/coverage-24adba675179ebba/lib/internal/test_runner/test.js.html#L371 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This improves a test coverage in
lib/internal/test_runner/test.jscoveageRef: https://coverage.nodejs.org/coverage-24adba675179ebba/lib/internal/test_runner/test.js.html#L371
This validates that printing correctly error message when multiple subtests failed