Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allure Framework: TestNG adapter generates duplicate XML files

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.

like image 909
JavaCreeper Avatar asked Aug 06 '14 12:08

JavaCreeper


1 Answers

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

like image 102
Dmitry Baev Avatar answered Nov 15 '22 03:11

Dmitry Baev