Only print failing assertion once with spec reporter #56316
Labels
feature request
Issues that request new features to be added to Node.js.
test_runner
Issues and PRs related to the test runner subsystem.
What is the problem this feature will solve?
The default test runner reporter
spec
prints an error twice. For example, with the following simple test:The command
node --test test.js
, ornode test.js
prints:A single test caused two identical errors in the output.
When there are 2 or more test failures, the output is really verbose to be inspected by a human -- are these the same failures?
This hurts the experience with
node:test
in node core development. A change can fail many cases in the test, and every test failure is printed twice, causing super long outputs.What is the feature you are proposing to solve the problem?
Only print a single test identical failure detail exactly once. This reduces the length of the output on failure and allow people to focus, rather than been distracted by the verbose long output.
What alternatives have you considered?
Don't change the status quo.
The text was updated successfully, but these errors were encountered: