1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use anyhow::Result;

use crate::testing::config::ComposeTestConfig;

pub(crate) fn exec(path: &str) -> Result<()> {
    // placeholder for changes that should run all integration tests
    println!("all-tests: []");

    // paths for each integration are defined in their respective config files.
    for (test_name, config) in ComposeTestConfig::collect_all(path)? {
        if let Some(paths) = config.paths {
            println!("{test_name}:");
            for path in paths {
                println!("- {path:?}");
            }
        }
    }

    Ok(())
}