Skip to content

Commit

Permalink
cargo-insta --disable-nextest-doctest: Add -N short option
Browse files Browse the repository at this point in the history
I'm not sure how appropriate this is for general use, but it's
convenient if, like me, you have a project where you use this all the
time.
  • Loading branch information
ilyagr committed Sep 16, 2024
1 parent 4cde386 commit 7c193c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cargo-insta/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ struct TestRunnerOptions {
#[arg(long)]
target: Option<String>,
/// Do not run `cargo test --doc` after `cargo nextest`, even if test specifiers would otherwise include doctests.
#[arg(long)]
#[arg(long, short = 'N')]
disable_nextest_doctest: bool,
}

Expand Down Expand Up @@ -882,7 +882,7 @@ fn prepare_test_runner<'snapshot_ref>(
None
};
let mut prevents_doc_run = false;
if cmd.disable_nextest_doctest {
if cmd.test_runner_options.disable_nextest_doctest {
prevents_doc_run = true;
}
if cmd.target_args.all || cmd.target_args.workspace {
Expand Down

0 comments on commit 7c193c6

Please sign in to comment.