-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Do not invoke the test runner when calling cargo bench and harness=false #6156
Comments
I'm not sure I understand the context for this issue, can you elaboate? All Cargo does is execute a binary, so are you saying Cargo shouldn't execute a binary? |
Assume you do
if there are tests and benchmarks in the crate some example (current rav1e):
|
@lu-zero can you provide a standalone example? |
Sure, here the minimal testcase |
@lu-zero I think you're seeing the benchmark for |
I had to sprinkle it around all the Now, could we make this the default behavior ? |
What's the default behaviour change? That |
It is right. If you are using criterion, you would not expect to have another runner being used by default. |
It is reasonable to have a mixture of different harnesses, built-in and otherwise. The main issue here is more that there isn't a stable bench harness. I feel like solving this issue is not aligned with longer term goals (stable bench harness, separating the concerns of harnesses and runners, etc). I'm going to close this. If there is a reason we should re-evaluate this, let us know! Note that #6945 would help lower the boilerplate involved in this issue until things have improved otherwise. |
in order to support mix&match we'd need something more complex to pass arguments to the different runners, as long that's available the workaround default behavior suggested stops being needed. |
Benchers such as criterion have custom options that are not available to the test runner.
The text was updated successfully, but these errors were encountered: