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 Jan 23, 2025
1 parent 72fad14 commit f327355
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 @@ -174,7 +174,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 @@ -961,7 +961,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 f327355

Please sign in to comment.