cargo test --benches does not accept --test-threads

This commit is contained in:
Lucas Farias 2025-07-02 19:23:00 -03:00
parent 156f596502
commit 00f06f9c51

View File

@ -13,12 +13,19 @@ impl Prepare for TestCommand {
let jobs = args.build_jobs();
let test_threads = args.test_threads();
let jobs_ref = &jobs;
vec![PreparedCommand::new::<Self>(
cmd!(
sh,
"cargo test --workspace --lib --bins --tests {no_fail_fast...} {jobs_ref...} -- {test_threads...}"
),
"Please fix failing tests in output above.",
),PreparedCommand::new::<Self>(
cmd!(
sh,
// `--benches` runs each benchmark once in order to verify that they behave
// correctly and do not panic.
"cargo test --workspace --lib --bins --tests --benches {no_fail_fast...} {jobs...} -- {test_threads...}"
"cargo test --benches {no_fail_fast...} {jobs_ref...}"
),
"Please fix failing tests in output above.",
)]