use std::path::PathBuf;
fn fixtures_dir() -> PathBuf {
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("../..")
.join("tests/fixtures")
}
#[test]
#[ignore = "requires Phase 2 reader"]
fn run_fixture_files() {
let dir = fixtures_dir();
let entries: Vec<_> = std::fs::read_dir(&dir)
.expect("fixtures dir should exist")
.filter_map(|e| e.ok())
.filter(|e| {
e.path()
.extension()
.map(|x| x == "cljrs" || x == "cljc")
.unwrap_or(false)
})
.collect();
assert!(
!entries.is_empty(),
"no .cljrs/.cljc fixture files found in {}",
dir.display()
);
for entry in entries {
let path = entry.path();
println!("fixture: {}", path.display());
}
}