-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dot test-reporter includes more info #53031
Comments
I've internalized the previous version of the dot runner given how small and simple it was. Feel free to close this issue. |
This behavior was changed in #52655, does that answer your question? @nodejs/test_runner is there a way to revert the behavior via a CLI flag or similar? |
Marking as |
Now that this is labeled as a feature request I should explain better why I saw value in the previous implementation of the dot reporter. We author a lot of PostCSS plugins and also have our own test suite for PostCSS plugins. To test this test suite itself we decided to use the dot reporter exactly because it only gives feedback on passes and failures. This makes it easy to verify that failing tests fail in the expected way. Information like stack traces is not helpful for our purposes because these can be different for each user and environment. The lack of detailed information in the dot reporter also gave us the impression that it would be stable across node versions. With the recent changes it is both unstable between node versions (because it is a new addition) and it is unstable between users. This makes it impossible to record test runner output and compare new runs against previous recordings. |
I would have approached it differently, having no stack trace by default (if you use dot you usually don't want the output to be verbose) and opt in with a flag |
no reason for it to be a flag. it can be two separate reporters. the only question is if they should both reside in core, or should one be in user-land? |
Changing it back has the benefit that it restores the previous behavior. Introducing a new |
There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the
never-stale
|
Version
22.2.0
Platform
all platforms
Subsystem
No response
What steps will reproduce the bug?
node --test-reporter dot
X
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
See only dots and
X
What do you see instead?
Stack traces and helpful debug info
Additional information
See : #51769
We rely on the previous way the dot reporter worked.
All the new output is actually breaking for us.
We picked the dot reporter for self tests on another test suite exactly because it omits debug info.
The lack of debug info and stack traces makes it a perfect smell test that runs the same on any platform.
Because this was changed in a minor node version we now have a broken main :D
I am unsure how to proceed.
Is there a way to restore the old behavior of the dot reporter?
The text was updated successfully, but these errors were encountered: