Skip to content

Commit

Permalink
fix: added spaces and changed -f flag to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilit0x committed Sep 14, 2023
1 parent 7e84f77 commit 145b5ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/runner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ struct Args {
#[clap(short, long)]
case_dir: Option<PathBuf>,

///Fail this run as soon as one case fails if true
#[arg(short, long, action = clap::ArgAction::Count)]
fail_fast: u8,
/// Fail this run as soon as one case fails if true
#[arg(short, long, default_value = "false")]
fail_fast: bool,

///Environment Configuration File
/// Environment Configuration File
#[clap(short, long, default_value = "config.toml")]
env_config_file: String,

///Name of test case to be matched
#[clap(short, long, default_value = "")]
/// Name of test cases to run. Accept as a regexp.
#[clap(short, long, default_value = ".*")]
test_filter: String,
}

Expand All @@ -53,7 +53,7 @@ async fn main() {

let config = ConfigBuilder::default()
.case_dir(util::get_case_dir(args.case_dir))
.fail_fast(matches!(args.fail_fast, 0))
.fail_fast(args.fail_fast)
.test_filter(args.test_filter)
.follow_links(true)
.env_config_file(args.env_config_file)
Expand Down

0 comments on commit 145b5ca

Please sign in to comment.