-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc splits test-args wrongly #39789
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
Comments
As far as I can tell, it has been like this way before I made this change. However you're right, we shouldn't parse this way. Also, please note that it's now possible to do:
Since this PR got merged. |
I'd like to note that allowing multiple test-args and not splitting would allow a fool proof, but not too convenient way to easily cover all possible argument contents. Could be implemented with an alternate to |
@GuillaumeGomez You assigned this to yourself, but I believe nothing has been done here -- it's not super clear to me what direction we want to take either; I think the two main proposals are |
I didn't do anything on this because I'm not convinced by the proposed suggestion. I wanted to talk about it in a doc meeting but completely forgot. Adding needed tags. EDIT: it seems it has already be done actually so I guess we can just close this issue. |
@GuillaumeGomez I do not see any change in the code. What do you mean by "it seems it has already be done actually"? |
Indeed, my bad. Went way too quickly when looking at the code. |
rustdoc is splitting test-args using split_whitespace, it should use something like shlex.
After the output of rusdoc testing changes, it is not possible to run a specific test anymore. For example, consider a x.rs file:
With stable compiler (1.15.1), this run the test
With nightly compiler (1.17.0-nightly (ba7cf7c 2017-02-11)), this does not run the test
Note that I'm taking the test name using
rustdoc +stable x.rs --test --test-args --list
It would be great if something like
rustdoc +nightly x.rs --test --test-args '--exact "x.rs - line 1"'
worked.The text was updated successfully, but these errors were encountered: