diff --git a/junit/src/main/java/cucumber/junit/JUnitReporter.java b/junit/src/main/java/cucumber/junit/JUnitReporter.java index 60958cc635..4b17179b3f 100644 --- a/junit/src/main/java/cucumber/junit/JUnitReporter.java +++ b/junit/src/main/java/cucumber/junit/JUnitReporter.java @@ -51,7 +51,6 @@ public void finishExecutionUnit() { public void match(Match match) { Description description = executionUnitRunner.describeChild(steps.remove(0)); stepNotifier = new EachTestNotifier(runNotifier, description); - stepNotifier.fireTestStarted(); reporter.match(match); } @@ -71,6 +70,8 @@ public void result(Result result) { stepNotifier.fireTestIgnored(); } else { if (stepNotifier != null) { + //Should only fireTestStarted if not ignored + stepNotifier.fireTestStarted(); if (error != null) { stepNotifier.addFailure(error); }