Add assert to ensure test exist

This commit is contained in:
Paul Hauner 2019-05-22 14:27:21 +10:00
parent f9f6161a7a
commit edbb435f4f
No known key found for this signature in database
GPG Key ID: 5E2CFF9B75FA63DF

View File

@ -9,6 +9,11 @@ fn yaml_files_in_test_dir(dir: &str) -> Vec<PathBuf> {
base_path.push("tests"); base_path.push("tests");
base_path.push(dir); base_path.push(dir);
assert!(
base_path.exists(),
"Unable to locate test files. Did you init git submoules?"
);
WalkDir::new(base_path) WalkDir::new(base_path)
.into_iter() .into_iter()
.filter_map(|e| e.ok()) .filter_map(|e| e.ok())