Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/tools/ci/src/commands/test_check.rs
6598 views
1
use crate::{args::Args, Prepare, PreparedCommand};
2
use argh::FromArgs;
3
use xshell::cmd;
4
5
/// Checks that all tests compile.
6
#[derive(FromArgs, Default)]
7
#[argh(subcommand, name = "test-check")]
8
pub struct TestCheckCommand {}
9
10
impl Prepare for TestCheckCommand {
11
fn prepare<'a>(&self, sh: &'a xshell::Shell, args: Args) -> Vec<PreparedCommand<'a>> {
12
let jobs = args.build_jobs();
13
14
vec![PreparedCommand::new::<Self>(
15
cmd!(sh, "cargo check --workspace --tests {jobs...}"),
16
"Please fix compiler errors for tests in output above.",
17
)]
18
}
19
}
20
21