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

Stop showing extranous test results #2832

Open
srinivasreddy opened this issue Jul 6, 2016 · 4 comments
Open

Stop showing extranous test results #2832

srinivasreddy opened this issue Jul 6, 2016 · 4 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-test S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

Comments

@srinivasreddy
Copy link
Contributor

please build the cargo
then run
cargo test -- shell

the following is the output i get,

   Running /home/srinivas/workspace/github/cargo/target/debug/bad_config-29b9088088a8e643

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/bad_manifest_path-cfb0cfbe5b1d6db7

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/bench-899b17bc89110205

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/build-75ee7b95d120fc04

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/build_auth-828c471864682e2d

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/build_lib-9ff7f3914c50a82c

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/build_script-aa6f1bd13e9feda9

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/cargo-75b4dff2bd89751d

running 2 tests
test util::shell_escape::windows::test_escape ... ok
test util::shell_escape::unix::test_escape ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured

     Running /home/srinivas/workspace/github/cargo/target/debug/cargo-0da986dbc84b5687

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/cfg-de8a215eeeaf0d3e

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/clean-a8a68d3725cf9cbd

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/concurrent-9649d843a9f2054a

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/config-1b9e093de7584bce

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/cross_compile-26dc334e831d6193

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/death-1e99da9760737515

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/doc-f831806fa66776ed

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/features-a3384b3d237071e6

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/fetch-9edbd6e115a77ab0

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/freshness-c92a6f1b2095d2cd

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/generate_lockfile-2fae0112c5e807ab

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/git-1893c8b7b4d3f7ec

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/init-a413fc91dc79b6ec

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/install-d738f01f4f6b2f9f

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/metadata-831b0bd9d47ee8d6

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/net_config-2079ac9a7ce2406d

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/new-f099e3570f170acf

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/overrides-e4a10ae0a7af778b

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/package-8ede8efffb406aa7

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/path-92937dcc46084a4e

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/plugins-1d932be1f7dcd299

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/profiles-d82d98539b77553b

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/publish-943b59dad74b2fc5

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/read_manifest-0caabe2d62c01d4f

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/registry-2decb472b4b1fa31

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/resolve-e2c239ca0fcaa0c3

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/run-a52187c41bcc0173

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/rustc-586f4901aa95a587

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/rustdoc-102dca85378f8283

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/rustdocflags-fe4fd1e18479eb53

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/rustflags-d7ad1f4bf729e05e

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/search-c6b883b8613010a9

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/shell-9015374de4fcae51

running 1 test
test colored_shell ... ok

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

     Running /home/srinivas/workspace/github/cargo/target/debug/sri-6fe69f61e5e22d25

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/test-8176a5ea2e95bc73

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/tool_paths-a7fc5aa9aa96059a

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/verify_project-37935a3cfccfc708

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/version-0d41c0e18a863188

running 0 tests

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

     Running /home/srinivas/workspace/github/cargo/target/debug/workspaces-75352b8a75505dc2

running 0 tests

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

   Doc-tests cargo

running 0 tests

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

@srinivasreddy
Copy link
Contributor Author

srinivasreddy commented Jul 6, 2016

Why should we show the output of modules which we dont run or match?

@alexcrichton
Copy link
Member

alexcrichton commented Jul 7, 2016

Yeah this is kinda unfortunate due to how tests are run today. Cargo has a list of binaries and an argument to pass to all of them, but it doesn't know which binary contains the test in question. You can filter with --test foo to only run one binary, but it'd be nice if Cargo handled this by default!

Unfortunately the "solution" here would be for the test binaries to be assumed to have a particular output format (e.g. streaming json) or Cargo parsing the current output (eew). And json probably requires custom test frameworks, which is a bit of aways out :(

@FilipAndersson245
Copy link

Any update on this issue?

@epage
Copy link
Contributor

epage commented May 5, 2023

I think with #5609, we can move test result rendering from libtest to cargo test which would allow us to fix this up.

@weihanglo weihanglo added the S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted. label May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-test S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Projects
Status: No status
Development

No branches or pull requests

6 participants