Hacker News new | ask | show | jobs
by jstrong 23 days ago
seems like `cargo nextest run` just runs `--lib` tests by default? however, `cargo test` is not so slow if you do `cargo test --lib`. how do I get nextest to execute the doc tests, too?
2 comments

The benchmarks are against non-doctest cargo test runs. (But you should measure against your own project, of course!) Unfortunately Cargo doesn't provide enough information for nextest to run doctests reliably with.
It looks like doctests aren't supported: https://github.com/nextest-rs/nextest/issues/16