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 bench fails with multiple --bench or --test arguments #4504

Closed
rwakulszowa opened this issue Sep 18, 2017 · 1 comment
Closed

cargo bench fails with multiple --bench or --test arguments #4504

rwakulszowa opened this issue Sep 18, 2017 · 1 comment

Comments

@rwakulszowa
Copy link
Contributor

cargo bench runs all benchmarks
cargo bench --bench=a runs benchmark a
cargo bench --bench=a --bench=b gives error: Invalid arguments.
cargo bench --test=a --test=b gives error: Invalid arguments.

cargo test --test=a --test=b runs test suites a and b
cargo test --bench=a --bench=b runs test suites for benches a and b

It seems that cargo bench handles its command line arguments differently than cargo test.

@alexcrichton
Copy link
Member

Thanks for the report! Probably a small bug with how we parse the command line arguments here...

@alexcrichton alexcrichton added A-diagnostics Area: Error and warning messages generated by Cargo itself. Command-bench and removed A-diagnostics Area: Error and warning messages generated by Cargo itself. labels Sep 18, 2017
@bors bors closed this as completed in df882fa Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants