Skip to content

Commit

Permalink
Fix tests on Windows
Browse files Browse the repository at this point in the history
The name might be cargo.exe
  • Loading branch information
sourcefrog committed Aug 8, 2022
1 parent b9b515c commit 403dfbf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,14 @@ fn small_well_tested_mutants_with_cargo_arg_release() {
println!("{}", baseline_log_path.display());
let log_content = fs::read_to_string(&baseline_log_path).unwrap();
println!("{}", log_content);
assert!(log_content.contains("cargo build --tests --release"));
assert!(log_content.contains("cargo test --release"));
regex::Regex::new(r"cargo.* build --tests --release")
.unwrap()
.captures(&log_content)
.unwrap();
regex::Regex::new(r"cargo.* test --release")
.unwrap()
.captures(&log_content)
.unwrap();
}

#[test]
Expand Down

0 comments on commit 403dfbf

Please sign in to comment.