vdev/commands/e2e/stop.rs
1use anyhow::Result;
2use clap::Args;
3
4use crate::testing::integration::ComposeTestLocalConfig;
5
6/// Stop an e2e-test environment
7#[derive(Args, Debug)]
8#[command()]
9pub struct Cli {
10 /// The e2e test name to stop
11 test: String,
12
13 /// If true, remove the runner container compiled with all integration test features
14 #[arg(short = 'a', long)]
15 all_features: bool,
16}
17
18impl Cli {
19 pub fn exec(self) -> Result<()> {
20 crate::commands::compose_tests::stop::exec(
21 ComposeTestLocalConfig::e2e(),
22 &self.test,
23 self.all_features,
24 )
25 }
26}