diff --git a/src/org/rascalmpl/test/infrastructure/RascalJUnitTestRunner.java b/src/org/rascalmpl/test/infrastructure/RascalJUnitTestRunner.java index 9ee452080a..e31e46b6f3 100644 --- a/src/org/rascalmpl/test/infrastructure/RascalJUnitTestRunner.java +++ b/src/org/rascalmpl/test/infrastructure/RascalJUnitTestRunner.java @@ -213,14 +213,14 @@ public Description getDescription() { // the order of the tests aren't decided by this list so no need to randomly order them. for (AbstractFunction f : tests) { - modDesc.addChild(Description.createTestDescription(clazz, computeTestName(f.getName(), f.getAst().getLocation()))); + modDesc.addChild(Description.createTestDescription(module, computeTestName(f.getName(), f.getAst().getLocation()))); } } catch (Throwable e) { System.err.println("[ERROR] " + e); desc.addChild(modDesc); - Description testDesc = Description.createTestDescription(clazz, name + "compilation failed", new CompilationFailed() { + Description testDesc = Description.createTestDescription(module, name + "compilation failed", new CompilationFailed() { @Override public Class annotationType() { return getClass(); @@ -243,7 +243,6 @@ public void run(final RunNotifier notifier) { if (desc == null) { desc = getDescription(); } - notifier.fireTestRunStarted(desc); for (Description mod : desc.getChildren()) { if (mod.getAnnotations().stream().anyMatch(t -> t instanceof CompilationFailed)) { @@ -255,8 +254,6 @@ public void run(final RunNotifier notifier) { TestEvaluator runner = new TestEvaluator(evaluator, listener); runner.test(mod.getDisplayName()); } - - notifier.fireTestRunFinished(new Result()); } private final class Listener implements ITestResultListener { @@ -283,7 +280,7 @@ private Description getDescription(String name, ISourceLocation loc) { @Override public void start(String context, int count) { - notifier.fireTestRunStarted(module); + // notifier.fireTestRunStarted(module); } @Override @@ -306,7 +303,7 @@ public void report(boolean successful, String test, ISourceLocation loc, String @Override public void done() { - notifier.fireTestRunFinished(new Result()); + // notifier.fireTestRunFinished(new Result()); } } }