-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Invert status output of tests (suffix instead of prefix) #28544
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
Comments
👍 I agree, and I'd be willing to implement this. |
👍 |
This will be pretty bad for accidental infinite loops. It's already required to turn off multithreaded testing to figure out which test is even hanging. Unless there's also some way to add test timeouts by default, switching the output order will be a pain. |
Seems like a worthy idea. Let's see if the tools team wants to consider it. |
The name can be printed “before” status (in time as opposed to space) by using some escape sequence tricks to reset the cursor to the original position (i.e. in the similar manner progress bars are implemented) |
Is this still a problem, now that |
We discussed this at the dev-tools meeting. Our verdict was that this should remain P-low. There was some discussion about printing the test name before a test is run (this is useful if a test segfaults, then you know which test is to blame) - which is #30047. On this issue, we decided we should not change things because there is low benefit (now that ok/fail is coloured) and there is always a cost to change. |
As it is currently running some tests looks like this:
Because the names are not the most important aspect of the message (the ok/failure status is), I believe it may make sense to invert the status output like so:
Note that:
Moved here from rust-lang/cargo#1985
The text was updated successfully, but these errors were encountered: