Commit 65312f68 authored by Johannes Mey's avatar Johannes Mey
Browse files

HOTFIX: ignore test resource directories without config.yaml file

parent cca3abfd
......@@ -169,8 +169,11 @@ public class RelAstProcessorTestBase {
Assertions.assertTrue(baseDir.isDirectory());
File[] files = baseDir.listFiles((FileFilter) FileFilterUtils.directoryFileFilter());
Assertions.assertNotNull(files);
return Arrays.stream(files).map(File::toPath).map(f -> DynamicTest.dynamicTest(f.getFileName().toString(),
() -> directoryTest(mainClass, f)));
return Arrays.stream(files)
// TODO consider also supporting "config.yml"
.filter(f -> Objects.requireNonNull(f.listFiles(x -> x.getName().matches("config\\.yaml"))).length == 1)
.map(File::toPath)
.map(f -> DynamicTest.dynamicTest(f.getFileName().toString(), () -> directoryTest(mainClass, f)));
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment