Rename test option --nocapture to --no-capture by zaeleus · Pull Request #24451 · rust-lang/rust (original) (raw)
Rust's built-in unit testing framework supports not capturing the output
of tests. The current flag --nocapture
is inconsistent with the other
long name options, i.e, they are written in spinal-case (a.k.a.
kebab-case).
Codegen options no-prepopulate-passes
, no-vectorize-loops
,no-vectorize-slp
, no-integrated-as
, and no-redzone
are hyphenated
between "no" and the name. Cargo has --no-default-features
and--no-deps
.
This change renames the test option --nocapture
to --no-capture
to
be consistent with Rust's naming of long name options. The ENV variableRUST_TEST_NOCAPTURE
is also renamed to RUST_TEST_NO_CAPTURE
.
Because this is a public facing option, it is a [breaking-change].