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.
Asked
Active
Viewed 3,218 times
1 Answers
7
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

Dmitry Baev
- 2,270
- 1
- 14
- 24
-
Yes It worked.I had removed the Allure listener from the POM.xml and test Class files – JavaCreeper Aug 11 '14 at 14:14