-
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
Allow enabling / disabling doc tests as a CLI flag and a .cargo/config option #1789
Comments
This was motivated because doctests don't work for cross-compiled testing right now, but we should also just fix that. |
What is the bug for that? I am hitting this when cross-compiling to i686 from x64_64 on the same OS. |
We may not actually have a bug open (I don't recall one off-hand), but if we did it'd be rattling around in rust-lang/rust somewhere |
I am running into this as well, would be really nice to get a fix here even outside the context of cross compiling (though that is where I am hitting an issue). Sometimes I just don't want to run doctests because they are slow, currently broken, etc. without making it a permanent option. |
I have a lot of tests and it takes a long time to recompile them all. So it would be nice to have a flag that runs just the doctests. I'm aware of |
I think @alexcrichton implemented this in #2578. |
Oops, looks like that's exactly what |
Shall we close this ticket?
The only thing left is disabling doc tests in |
Sounds good to me! |
Not quite, I found my way here because my IDE cannot attach a debugger when multiple binaries are produced. I believe doc tests must be in a separate binary? So I have no way to run all tests, including the integ tests from the |
I found my way here while facing a similar issue as @webern . Just in case this helps anyone: For me the solution to not running doc tests whenever I execute
|
It would be nice to be able to enable / disable doc tests as a CLI flag and a local (.cargo/config) option.
The text was updated successfully, but these errors were encountered: