5

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.

vania-pooh
  • 2,933
  • 4
  • 24
  • 42
JavaCreeper
  • 193
  • 2
  • 5
  • 9

1 Answers1

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