Skip to content
Snippets Groups Projects
Commit 65312f68 authored by Johannes Mey's avatar Johannes Mey
Browse files

HOTFIX: ignore test resource directories without config.yaml file

parent cca3abfd
No related branches found
No related tags found
No related merge requests found
......@@ -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)));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment