Skip to content

Commit

Permalink
Merge pull request #274 from dgradl/Issue263
Browse files Browse the repository at this point in the history
Addressing Issue#263: Eclipse JUnit reports inaccurate run count
  • Loading branch information
aslakhellesoy committed Mar 23, 2012
2 parents b71e5df + 48f6da0 commit ff9c506
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion junit/src/main/java/cucumber/junit/JUnitReporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}
Expand Down

0 comments on commit ff9c506

Please sign in to comment.