cargo test --benches
does not accept --test-threads
This commit is contained in:
parent
156f596502
commit
00f06f9c51
@ -13,12 +13,19 @@ impl Prepare for TestCommand {
|
|||||||
let jobs = args.build_jobs();
|
let jobs = args.build_jobs();
|
||||||
let test_threads = args.test_threads();
|
let test_threads = args.test_threads();
|
||||||
|
|
||||||
|
let jobs_ref = &jobs;
|
||||||
vec![PreparedCommand::new::<Self>(
|
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!(
|
cmd!(
|
||||||
sh,
|
sh,
|
||||||
// `--benches` runs each benchmark once in order to verify that they behave
|
// `--benches` runs each benchmark once in order to verify that they behave
|
||||||
// correctly and do not panic.
|
// 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.",
|
"Please fix failing tests in output above.",
|
||||||
)]
|
)]
|
||||||
|
Loading…
Reference in New Issue
Block a user