Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upInvert status output of tests (suffix instead of prefix) #28544
Comments
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
|
steveklabnik
added
the
A-testsuite
label
Nov 11, 2015
This comment has been minimized.
This comment has been minimized.
viraptor
commented
Nov 26, 2015
|
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. |
brson
added
I-wishlist
I-nominated
P-low
labels
May 4, 2017
This comment has been minimized.
This comment has been minimized.
|
Seems like a worthy idea. Let's see if the tools team wants to consider it. |
This comment has been minimized.
This comment has been minimized.
|
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) |
This comment has been minimized.
This comment has been minimized.
viraptor
commented
May 4, 2017
•
|
Is this still a problem, now that |
alexcrichton
added
T-dev-tools
and removed
T-tools
labels
May 22, 2017
This comment has been minimized.
This comment has been minimized.
|
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. |
slimsag commentedSep 20, 2015
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