Refer to --exact for running the exact one test#3712
Refer to --exact for running the exact one test#3712ledusledus wants to merge 1 commit intorust-lang:mainfrom
--exact for running the exact one test#3712Conversation
|
Thanks for opening this! We will talk about the best way to proceed here: it is possible we should add this kind of extra explanatory text, but there are also a lot of other details about how to handle things with |
|
All right, I did some poking around to figure out where the heck this is documented, and I was surprised to discover that the only place we cover it is in the rustc book, which I had (astonishingly, but not uniquely) never even seen before yesterday as far as I know! I think what I’m inclined to do is link to that page instead. This book does not aim to be comprehensive; indeed it cannot be comprehensive. But this was also a feature I would have liked for a very long time and I always just thought it was a weird gap in Rust’s testing strategy, when it turns out it’s just a not-easy-to-find corner of Net, I’m going to rewrite this to that effect and push to this branch. Thanks again for opening this; I had no idea about this till you opened the PR! |
|
Ah, it looks like I’ll have to recreate this on top of |
The section on how to run a single test is not precise for cases where test names are substrings of other tests which generates questions like https://stackoverflow.com/questions/54585804/how-to-run-a-specific-unit-test-in-rust.
I propose to point to
--exactargument for this case.