Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
JUnit run notifier will fire test finished as well after test failure… #909
I created a patch for issue #908 to help out.
In summary the FitNesseRunner doesn't work properly with the Gradle build tool. Reason for this is they expect an invocation of fireTestFinished for every fireTestStarted even if you already invoked fireTestFailure.
The effect is that any failures or errors observed in a fitnesse run are ignored by Gradle's test result listener.
I added tests to JUnitRunNotifierResultsListenerTest to cover this behavior.
Finally, I'd like to bring your attention to the fact I modified the 2 existing tests slightly to illustrate the summaries passed into testComplete don't matter. They only matter when the test result succeeds and the summary still insists there were failures or errors of some kind.