--message-format= should also imply a corresponding flag to test harnesses · Issue #8903 · rust-lang/cargo (original) (raw)
Describe the problem you are trying to solve
I currently invoke cargo with --message-format=json
in order to parse its output and present it to development/review tooling as in-line messages. Cargo currently does not support presenting the test output in a different way. In order to obtain machine-readable output from tests, I need to build the tests with --no-run
, collect the test artifacts, and run them manually, while passing --format=json
to the harnesses and parse that output, instead.
Describe the solution you'd like
Running with --message-format=
should output test progress, status and similar information as the requested message format.
Notes
This would also enable some progress towards #5609. See also #5609 (comment)