Skip to content

Commit

Permalink
always include all features when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
busticated committed Oct 19, 2023
1 parent 371b055 commit f153d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xtask/src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl<'a> Cargo<'a> {
{
let mut profile_ptn: OsString = path.into();
profile_ptn.push("/cargo-test-%p-%m.profraw");
let args = self.build_args([OsString::from("test")], [""]);
let args = self.build_args([OsString::from("test")], ["--all-features"]);
let envs = HashMap::from([
("CARGO_INCREMENTAL".into(), "0".into()),
("RUSTFLAGS".into(), "-Cinstrument-coverage".into()),
Expand Down Expand Up @@ -286,7 +286,7 @@ mod tests {
),
]);

assert_eq!(args, ["test"]);
assert_eq!(args, ["test", "--all-features"]);
assert_eq!(envs, Some(expected_envs));
}

Expand Down
2 changes: 1 addition & 1 deletion xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ fn init_tasks() -> Tasks {
println!(":::::::::::::::::::::::::");
println!();

cargo.test([""]).run()?;
cargo.test(["--all-features"]).run()?;

println!(":::: Done!");
println!();
Expand Down

0 comments on commit f153d34

Please sign in to comment.