We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3819f0 + 909cbbe commit f76d9bcCopy full SHA for f76d9bc
src/libtest/lib.rs
@@ -740,7 +740,7 @@ fn should_sort_failures_before_printing_them() {
740
741
fn use_color(opts: &TestOpts) -> bool {
742
match opts.color {
743
- AutoColor => get_concurrency() == 1 && stdout_isatty(),
+ AutoColor => !opts.nocapture && stdout_isatty(),
744
AlwaysColor => true,
745
NeverColor => false,
746
}
0 commit comments