Cargo test: redundant sections are bloating output by default #9072
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Describe the problem you are trying to solve
By default, cargo test can give bloated output for projects that don't have e.g. Doc-tests or other test groups.
I have a small project and have started writing first tests for it. When running
cargo test
, I get output:The end of the output has two redundant sections that contribute no information and makes it a harder to get an idea at a glance of what has just happened (admittedly this might be less of a problem with experienced users - they know where to look).
Describe the solution you'd like
I would like either to have sections with 0 tests hidden completely, or at least reduced to single lines "Doc-tests {}: none found" or similar. Definitely not 0 count for many categories, as I must scan them all to make sure all are zero.
Notes
I recognize that this is less of an issue for experienced users that a) use selectors for the test they want to run; b) know where to look in the output. So this benefits beginners more. Streamlining the default behavior should make e.g. live demos easier on the other hand.
The text was updated successfully, but these errors were encountered: