We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a1fd52 commit 1c69799Copy full SHA for 1c69799
allure-junit4-aspect/src/main/java/io/qameta/allure/junit4/aspect/AllureJunit4ListenerAspect.java
@@ -32,8 +32,8 @@ public class AllureJunit4ListenerAspect {
32
@After("execution(org.junit.runner.notification.RunNotifier.new())")
33
public void addListener(final JoinPoint point) {
34
final RunNotifier notifier = (RunNotifier) point.getThis();
35
- notifier.removeListener(allure);
36
- notifier.addListener(allure);
+ if (RunNotifier.class.equals(notifier.getClass())) {
+ notifier.addListener(allure);
37
+ }
38
}
-
39
0 commit comments