Description
The Rustdoc book suggests that no_run
[..] is important for examples such as "Here's how to retrieve a web page," which you would want to ensure compiles, but might be run in a test environment that has no network access.
However, it follows from this that in some cases you do want to run doctests marked as no_run
, such as if the test environment does have network access. This is possible with regular tests marked #[ignore]
by passing -- --ignored
to cargo test
, but the same does not work with documentation tests. Either an argument to run no_run
doctests should be added, or the rustdoc book should be updated with a more appropriate use-case for no_run
. The latter is probably a better solution for now, given that adding such a flag would likely be difficult.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status