1
2
3
4
5
6
7
8
9
10
11
12
use anyhow::Result;

use crate::testing::{integration::ComposeTestT, state::EnvsDir};

pub(crate) fn exec<T: ComposeTestT>(test_name: &str, all_features: bool) -> Result<()> {
    if let Some(active) = EnvsDir::new(test_name).active()? {
        T::stop(&T::generate(test_name, active, all_features, 0)?)
    } else {
        println!("No environment for {test_name} is active.");
        Ok(())
    }
}