feat: add --overview-only to test subcommand

This commit is contained in:
buckynbrocko 2024-07-29 18:03:25 -05:00 committed by Amaan Qureshi
parent bbc1370dd5
commit 4dad379928
2 changed files with 31 additions and 25 deletions

View file

@ -251,6 +251,8 @@ struct Test {
pub show_fields: bool,
#[arg(short, long, help = "Force rebuild the parser")]
pub rebuild: bool,
#[arg(long, help = "Show only the pass-fail overview tree")]
pub overview_only: bool,
}
#[derive(Args)]
@ -710,6 +712,7 @@ impl Test {
color,
test_num: 1,
show_fields: self.show_fields,
overview_only: self.overview_only,
};
test::run_tests_at_path(&mut parser, &mut opts)?;