I have a spring-boot as core framework.
I have unit tests using spring stuff for unit tests
@RunWith(SpringRunner.class)
In allure results instead of 10 tests I have 20 (10 is real value). And I see duplicates in report as well.
Probably problem with allure-junit-aspectj-adaptor dependency.
It contains aspect to catch run() call and adds AllureRunListener to count tests for report.
Maybe with SpringRunner it executes twice so that is why I have duplications.
It would be great to have option to disable this dependency (if it is root of the problem). So I can use any framework and can decide what approach to use (aspect handler or old-school BaseTest wrapper with Allure Listener inside)
I have a spring-boot as core framework. I have unit tests using spring stuff for unit tests
@RunWith(SpringRunner.class)
In allure results instead of 10 tests I have 20 (10 is real value). And I see duplicates in report as well.
Probably problem with allure-junit-aspectj-adaptor dependency. It contains aspect to catch
run()
call and addsAllureRunListener
to count tests for report.Maybe with SpringRunner it executes twice so that is why I have duplications. It would be great to have option to disable this dependency (if it is root of the problem). So I can use any framework and can decide what approach to use (aspect handler or old-school BaseTest wrapper with Allure Listener inside)