From f153d346403964e06afd58601ca6ca98bce16b53 Mon Sep 17 00:00:00 2001 From: busticated Date: Thu, 19 Oct 2023 12:35:35 -0700 Subject: [PATCH] always include all features when running tests --- xtask/src/cargo.rs | 4 ++-- xtask/src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xtask/src/cargo.rs b/xtask/src/cargo.rs index c5ef6f9..e5cd171 100644 --- a/xtask/src/cargo.rs +++ b/xtask/src/cargo.rs @@ -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()), @@ -286,7 +286,7 @@ mod tests { ), ]); - assert_eq!(args, ["test"]); + assert_eq!(args, ["test", "--all-features"]); assert_eq!(envs, Some(expected_envs)); } diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 329d2d3..83f54b7 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -473,7 +473,7 @@ fn init_tasks() -> Tasks { println!(":::::::::::::::::::::::::"); println!(); - cargo.test([""]).run()?; + cargo.test(["--all-features"]).run()?; println!(":::: Done!"); println!();