feat: skip tests run if the config is invalid

This commit is contained in:
adrian
2025-09-12 09:45:43 +02:00
committed by Adrian Benavides
parent 85080dd6c7
commit 92336df9bb
2 changed files with 8 additions and 2 deletions

View File

@@ -101,7 +101,13 @@ impl TestRunner {
return Ok(());
}
let config = Self::parse_config(&config_yaml_path)?;
let config = match Self::parse_config(&config_yaml_path) {
Ok(cfg) => cfg,
Err(e) => {
warn!("Failed to parse config: {:?}", e);
return Ok(());
}
};
let tests = match &self.match_test {
Some(filter) => config