compiletest-rs icon indicating copy to clipboard operation
compiletest-rs copied to clipboard

nocapture not working for succeeding tests

Open JeanMertz opened this issue 5 years ago • 0 comments

running cargo test -- --nocapture or env RUST_TEST_NOCAPTURE=1 cargo test does not output anything printed with println! if the test succeeds. If I make the test fail, it prints both stdout and stderr, and I can see the expected output in the stdout part of the log.

I found some references to nocapture in the source, but haven't been able to get it to work.

Any ideas?

JeanMertz avatar Sep 10 '18 16:09 JeanMertz