Cargo test can't find doc tests when --format=json
option is presented
#102957
Labels
C-bug
Category: This is a bug.
regression-untriaged
Untriaged performance or correctness regression.
Code
I tried this command:
$ cargo test
on this code (
lib.rs
):The result is:
As expected, cargo found 1 doc test. But when I add
--format=json
option to the command line:$ cargo test -- -Z unstable-options --format=json
I expected to see this:
Instead, I got this:
Version it worked on
It most recently worked on:
nightly-2022-10-02
Version with regression
nightly-2022-10-08
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: