Other registered failing RunListeners cause NullPointerException in
ConcurrentReporterManager, falsely report of "No tests were executed!":
--------------------------------------------------------------------------------------------------------------------------------------------
Key: SUREFIRE-746
URL: http://jira.codehaus.org/browse/SUREFIRE-746
Project: Maven Surefire
Issue Type: Bug
Components: Junit 4.7+ (parallel) support
Affects Versions: 2.8.1
Reporter: Aslak Knutsen
Attachments: SurefireXXX.java
A Custom Runner in JUnit can register their own RunListeners on the RunNotifier
during execution. When these fail, junit removes them from the Listener chain
and fires a 'internal' Failure,
{code:title=RunNotifier.SafeNotifier:44}
fireTestFailure(new Failure(Description.TEST_MECHANISM, e));
{code}
When a unknown Failure is fired with a 'unknown' Description as compared to
surefires pre created metadata registry, it fails with a NullPointerException
and is removed by JUnit.
"No tests are found"
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira