Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo test -q not works as expected #4325

Closed
davemilter opened this issue Jul 25, 2017 · 3 comments · Fixed by #6358
Closed

cargo test -q not works as expected #4325

davemilter opened this issue Jul 25, 2017 · 3 comments · Fixed by #6358
Labels

Comments

@davemilter
Copy link

cargo test --help promise "-q, --quiet No output printed to stdout",
but cargo test -q and cargo test produce the same output to terminal.

@alexcrichton
Copy link
Member

Thanks for the report! Could you gist the output that's getting printed as well?

@davemilter
Copy link
Author

Could you gist the output that's getting printed as well?

cargo test

> cargo new output && cd output
> cargo test
   Compiling output v0.1.0 (file:///tmp/output)
    Finished dev [unoptimized + debuginfo] target(s) in 0.39 secs
     Running target/debug/deps/output-5d078bc893605b55

running 1 test
test tests::it_works ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

   Doc-tests output

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

cargo test -q

> cargo test -q

running 1 test
test tests::it_works ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

I've expected not output at all from cargo test -q, or may be errors to stderr,
like cargo test > /dev/null

@alexcrichton
Copy link
Member

Ah this is all output coming from the test harness in rust-lang/rust, which Cargo doesn't forward arguments like -q to righ tnow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants