I am trying to use Allure with TestNG and Maven using this example. Each time I run this example duplicate copies of xml files are generated. I am using allure 1.4.0.RC8. Any guidance on this is highly appreciated.
Since Allure 1.4.0.RC4 listener adds via ServiceLoader. Just remove listener property from maven-surefire-plugin. This configuration should work:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<argLine>
-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
Read more at our wiki: https://github.com/allure-framework/allure-core/wiki/TestNG
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With