-
Notifications
You must be signed in to change notification settings - Fork 17
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
FoundCrate::Itself reported in doc tests #11
Comments
Hey, The best is to do the following:
|
You could use your own environment variable, for example cargo test --tests # everything except doctests
DOCTEST_MODE="" cargo test --doc # only doctests Since #13, you could also just use |
But that only works if ones emits the crate name on |
I mean this entire crate is a hack around some missing feature in rustc :P I somehow still hope that rustc at some day brings "native" support for this. |
Hey there, it appears that
FoundCrate::Itself
is being returned when inside documentation tests. I currently work this around with the following snippet:Now, these environment variables are clearly not stable, but it was the only way I could distinguish doc tests, sooooo I don't know, the worst that could happen is these variables being removed.
The text was updated successfully, but these errors were encountered: