node/lib/internal/test_runner/reporter
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
..
dot.js test_runner: make built in reporters internal 2023-01-06 19:34:12 +00:00
spec.js test_runner: report failing tests after summary 2023-03-23 18:45:53 +00:00
tap.js test_runner: count nested tests 2023-03-21 08:16:38 +00:00