node/lib/internal/test_runner
HinataKah0 2e8f8eb4e3
test_runner: report failing tests after summary
Re-output failing tests after summary has been printed.
This behavior follows other popular test runners
(e.g. jest, mocha, etc...).

Updated SpecReporter:
1. When there is a 'test:fail' event, the test will be
stored.
2. After no more input, all the failed tests will be
flushed.
3. Extract the logic for formatting a test report
into a re-usable function.

Fixes: https://github.com/nodejs/node/issues/47110
PR-URL: https://github.com/nodejs/node/pull/47164
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2023-03-23 18:45:53 +00:00
..
reporter test_runner: report failing tests after summary 2023-03-23 18:45:53 +00:00
coverage.js lib: enforce use of trailing commas for functions 2023-02-14 18:45:16 +01:00
harness.js test_runner: count nested tests 2023-03-21 08:16:38 +00:00
mock.js lib: enforce use of trailing commas for functions 2023-02-14 18:45:16 +01:00
runner.js test_runner: count nested tests 2023-03-21 08:16:38 +00:00
tap_checker.js lib: enforce use of trailing commas for functions 2023-02-14 18:45:16 +01:00
tap_lexer.js test_runner: accept \x1b as a escape symbol 2023-03-16 20:39:36 +00:00
tap_parser.js lib: enforce use of trailing commas for functions 2023-02-14 18:45:16 +01:00
test.js test_runner: count nested tests 2023-03-21 08:16:38 +00:00
tests_stream.js test_runner: add initial code coverage support 2023-01-08 16:09:41 -05:00
utils.js test_runner: count nested tests 2023-03-21 08:16:38 +00:00
yaml_to_js.js test_runner: fix reconstruction of errors extracted from YAML 2023-03-01 22:16:39 +00:00