diff --git a/src/org/rascalmpl/test/infrastructure/RascalJUnitTestRunner.java b/src/org/rascalmpl/test/infrastructure/RascalJUnitTestRunner.java index 0f7b7c4ebf2..a6c74d5be4e 100644 --- a/src/org/rascalmpl/test/infrastructure/RascalJUnitTestRunner.java +++ b/src/org/rascalmpl/test/infrastructure/RascalJUnitTestRunner.java @@ -159,11 +159,6 @@ public static String computeTestName(String name, ISourceLocation loc) { public static List getRecursiveModuleList(ISourceLocation root, List result) throws IOException { Queue todo = new LinkedList<>(); - // if (URIResolverRegistry.getInstance().exists(root)) { - // System.err.println("[INFO] skipping " + root + ", does not exist."); - // return result; - // } - todo.add(root); while (!todo.isEmpty()) { @@ -233,7 +228,7 @@ public Description getDescription() { desc.addChild(modDesc); - Description testDesc = Description.createTestDescription(clazz, name + "compilation failed", new CompilationFailed() { + Description testDesc = Description.createTestDescription(clazz, name + " compilation failed", new CompilationFailed() { @Override public Class annotationType() { return getClass(); @@ -246,9 +241,18 @@ public Class annotationType() { return desc; } catch (IOException e) { + Description testDesc = Description.createTestDescription(clazz, prefix + " compilation failed: " + e.getMessage(), new CompilationFailed() { + @Override + public Class annotationType() { + return getClass(); + } + }); + + desc.addChild(testDesc); + System.err.println("[ERROR] Could not create tests suite: " + e); - e.printStackTrace(); - throw new RuntimeException("could not create test suite", e); + + return desc; } }