-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
nocapture for doc-tests #1732
Comments
Are you sure that this doesn't work? I just ran |
Right, that's what I'm missing. |
Closing, already filed: rust-lang/rust#26309 |
Linking the follow-up pull request since this issue is what comes up in a Google search. Rustdoc fixed the issue in 2021. There was a pull request to fix the issue in Cargo, but the pull request was never resolved: #9705. |
Hi,
For ordinary tests, I can run
cargo test -- --nocapture
and the output will shown on-screen. However, I have doc-tests as well (examples in the documentation), and even though I use--nocapture
the output of these are not shown.I'm not sure whether this is a bug in cargo or somewhere else, but at least the behaviour is inconsistent.
The text was updated successfully, but these errors were encountered: