Skip to content

Commit 3fb3cd0

Browse files
committed
integration tests from different directories
1 parent 89ed469 commit 3fb3cd0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cli/tests/integration_tests.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ use std::process::{Command, Stdio};
1313

1414
#[test]
1515
fn run_integration_tests() {
16+
run_integration_tests_dir(Path::new("tests/test_cases"));
17+
run_integration_tests_dir(Path::new("tests/private"));
18+
}
19+
20+
fn run_integration_tests_dir(dir : &Path) {
1621
let cli_path = env!("CARGO_BIN_EXE_cli");
17-
let test_cases_dir = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/test_cases");
22+
let test_cases_dir = Path::new(env!("CARGO_MANIFEST_DIR")).join(dir);
1823

1924
for entry in fs::read_dir(test_cases_dir).expect("Failed to read test_cases directory") {
2025
let entry = entry.expect("Failed to read directory entry");

0 commit comments

Comments
 (0)