Enable colored test output when capturing output of tests
The output of individual tests can be captured now so it's safe to use colorized output even when running tests in parallel. Closes #782.
This commit is contained in:
parent
d3543099d6
commit
909cbbeda8
1 changed files with 1 additions and 1 deletions
|
|
@ -740,7 +740,7 @@ fn should_sort_failures_before_printing_them() {
|
|||
|
||||
fn use_color(opts: &TestOpts) -> bool {
|
||||
match opts.color {
|
||||
AutoColor => get_concurrency() == 1 && stdout_isatty(),
|
||||
AutoColor => !opts.nocapture && stdout_isatty(),
|
||||
AlwaysColor => true,
|
||||
NeverColor => false,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue