-
Notifications
You must be signed in to change notification settings - Fork 349
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
miri can't run single tests #1414
Comments
Have you tried: |
@djugei it would be helpful to know what exact commands you tried. Also see the docs at https://github.com/rust-lang/miri#using-miri. |
i tried cargo miri test -- test-name, but not the double-double-dashes, which work. literally had to go /second on the docs to find it, there isn't an example of the double-double-dash-syntax. i also read the help text (no info) and the src/bin/miri.rs to have a look at comand line parsing, but thats hand-rolled, uses global state, and i did not look into the deeper function calls. |
Clearly our docs need improvement, you are not the only one to be confused by this. FWIW, the right file to look at would have been As a start, I'll add the example back to the README... we used to have one I think, but it somehow disappeared. (Also, it's not global state, we are not that that crazy.^^) |
Also, the help text (
Looks like this is still not clear enough, maybe we should have examples here, too. |
right, i looked at cargo-miri.rs, misremembered. and you are right, the help text is there, must have overlooked it, guess i expected it to be right after the test-subcommand, also cargo miri --help and cargo miri test --help produce the same output (not more specific for subcommand) i think the main confusion for me is that its different from how cargo without miri works cargo run -- arguments cargo test -- arguments |
add test suite filter example to README and 'cargo miri --help' Fixes #1414
i think with those changes i would have found what i was looking for |
Yeah, that's a bit weird. But I don't really see another way as we also need a way to pass flags to Miri. Maybe we could re-expose all these flags through Also not sure if you saw that, I opened a PR to add more examples to the docs: #1415 |
yeah i closed the issue cause of the pr, thanks for the work! |
I can't seem to find a way to make miri run just a subset of my tests.
cargo miri test always runs all of them and i don't see a way to cut that down.
The text was updated successfully, but these errors were encountered: