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

Provide a way to run *all* tests. #5419

Closed
vext01 opened this issue Apr 26, 2018 · 6 comments
Closed

Provide a way to run *all* tests. #5419

vext01 opened this issue Apr 26, 2018 · 6 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-test

Comments

@vext01
Copy link
Contributor

vext01 commented Apr 26, 2018

So we have:

cargo test

To run all but ignored tests. Then:

cargo test -- --ignored

To run only ignored tests.

But as far as I can see there is no way to run all tests in parallel short of:

cargo test & cargo test -- --ignored

Which isn't ideal for scripting and is not convenient.

How about?

cargo test -- --all

Cheers

@alexcrichton alexcrichton added Command-test C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` labels Apr 26, 2018
@dwijnand
Copy link
Member

dwijnand commented May 1, 2018

(There's a typo in your last suggestion, you mean cargo test -- --all, no run)

Seeing as cargo test just delegates to libtest (rustc's built in unit-test and micro-benchmarking framework) should this issue not be reported upstream to rust-lang/rust (and this issue here labeled [blocked])?

@vext01
Copy link
Contributor Author

vext01 commented May 1, 2018

There's a typo

Thanks, fixed.

should this issue not be reported upstream

Can do. I didn't know that testing was delegated.

@vext01
Copy link
Contributor Author

vext01 commented May 1, 2018

OK, raised upstream. I'd need someone to apply the label here.

@dwijnand
Copy link
Member

dwijnand commented May 1, 2018

I didn't know that testing was delegated.

Me either. I found out while working on #5341.

@matklad
Copy link
Member

matklad commented May 2, 2018

Thanks @dwijnand!

It is indeed the case that --ignored is not handled by Cargo today, so closing this in favor of upstream report!

@matklad matklad closed this as completed May 2, 2018
@wischi-chr
Copy link

Because I landed here using google and it might help other people (or future me ^^):

cargo test -- --include-ignored

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
Projects
None yet
Development

No branches or pull requests

5 participants