Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cargo-insta/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ struct TestRunnerOptions {
/// Build for the target triple
#[arg(long)]
target: Option<String>,
/// Do not run `cargo test --doc` after `cargo nextest`, even if test specifiers would otherwise include doctests.
#[arg(long, short = 'N')]
disable_nextest_doctest: bool,
}

#[derive(Args, Debug)]
Expand Down Expand Up @@ -1012,6 +1015,9 @@ fn prepare_test_runner<'snapshot_ref>(
None
};
let mut prevents_doc_run = false;
if cmd.test_runner_options.disable_nextest_doctest {
prevents_doc_run = true;
}
if cmd.target_args.all || cmd.target_args.workspace {
proc.arg("--all");
}
Expand Down
Loading