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

Change the console message when there are no tests to run #2831

Closed
srinivasreddy opened this issue Jul 6, 2016 · 3 comments
Closed

Change the console message when there are no tests to run #2831

srinivasreddy opened this issue Jul 6, 2016 · 3 comments

Comments

@srinivasreddy
Copy link
Contributor

srinivasreddy commented Jul 6, 2016

when you don't have any tests to run,

$ cargo test
   Compiling rand v0.1.0 (https://github.com/rust-lang-nursery/rand.git#9f35b8e)
   Compiling hello_world v0.1.0 (file:///path/to/project/hello_world)
     Running target/test/hello_world-9c2b65bbb79eabce

running 0 tests

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

How about showing,

cargo test
There are no tests to run 
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured

cargo test --  hello
There are no tests to run  in 'hello'
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured

@alexcrichton
Copy link
Member

Unfortunately this is somewhat up to the underlying test harnesses as Cargo doesn't understand a lot about what each underlying binary is doing

@kornelski
Copy link
Contributor

Related/dupe #2832

@alexcrichton
Copy link
Member

Ah yes, indeed!

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

No branches or pull requests

3 participants