mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-29 16:13:40 +00:00
6d20265a9e
libtest: add --show-output flag to print stdout of successful tests This pull request adds a new flag `--show-output` for tests to show the output of successful tests. For most formatters this was already supported just not exposed via the CLI (apparently only used by `librustdoc`). I've also added support for this option in the JSON formatter. This kind of fixes https://github.com/rust-lang/rust/issues/54669 which wants `--format json` to work with `--nocapture`, which is... well, impossible. What this issue really calls for is `--show-output` as implemented here. |
||
---|---|---|
.. | ||
formatters | ||
stats | ||
Cargo.toml | ||
lib.rs | ||
stats.rs | ||
tests.rs |