rpau / junit4git

Junit Extensions for Test Impact Analysis
43 stars 13 forks source link

Getting error "Listener of type 'MismatchReportingTestListener' has already been added and not removed." #19

Open SureshG02 opened 3 years ago

SureshG02 commented 3 years ago

I'm exploring this plugin but seems many of test cases in my project got failed with below error. I'm using @RunWith(MockitoJUnitRunner.class) in almost all of my test cases. Do you know what step I'm missing here?

Problems adding Mockito listener.
Listener of type 'MismatchReportingTestListener' has already been added and not removed.
It indicates that previous listener was not removed according to the API.
When you add a listener, don't forget to remove the listener afterwards:
  Mockito.framework().removeListener(myListener);
For more information, see the javadoc for RedundantListenerException class.
rpau commented 3 years ago

Thanks for reporting this issue. The short answer is no. Are you using Maven or Gradle? Could you share a hello world project that reproduces the issue?