testng + maven + allure testing framework

1. maven allure and downloaded to local needs, and then disposed in the path. testng do not need to write the dependence in pom.xml you can pull yourself. mvn and allure of downloading and not in the expanded configuration.

2. allure configuration.

<dependency>
            <groupId>io.qameta.allure</groupId>
            <artifactId>allure-testng</artifactId>
            <version>2.0-BETA18</version>
 </dependency>

 <properties>
        <aspectj.version>1.8.10</aspectj.version>
    </properties>
<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.20</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>
        </plugins>
    </build>

  

Guess you like

Origin www.cnblogs.com/zqlmmd/p/11837484.html