Add --show-output
to cargo help test
and cargo test --help
#12530
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-test
S-triage
Status: This issue is waiting on initial triage.
Problem
When users would like to show the output of their unit tests, they often end up at this Stackoverflow post, and even then, they might miss
--show-output
if they don't scroll down a bit. Of course, the option is also mentioned in the book, but given that the book isn't designed to be a reference manual, it's not the first place one might check.Proposed Solution
I think that if we add
--show-output
tocargo help test
andcargo test --help
, users might be able to find what they need a little quicker and/or without internet access.Notes
Anecdotally, when I was trying to figure out how to make the output show, I ran
cargo test --help
, saw nothing that caught my eye (--nocapture
is an alternative, but its name doesn't make that obvious), and proceeded to run an internet search that landed me at the aforementioned Stackoverflow post.The text was updated successfully, but these errors were encountered: