vdev/commands/e2e/start.rs
use anyhow::Result;
use clap::Args;
use crate::testing::integration::E2ETest;
/// Start an environment
#[derive(Args, Debug)]
#[command()]
pub struct Cli {
/// The e2e test name
test: String,
/// Whether to compile the test runner with all integration test features
#[arg(short = 'a', long)]
build_all: bool,
/// The desired environment name to start. If omitted, the first environment name is used.
environment: Option<String>,
}
impl Cli {
pub fn exec(self) -> Result<()> {
crate::commands::compose_tests::start::exec::<E2ETest>(
&self.test,
self.environment.as_ref(),
self.build_all,
)
}
}