1、Allure报告在工程中使用
官网:Allure | Test report and framework for writing self-documented tests
首先找到Allure maven依赖包
在https://mvnrepository.com/artifact/io.qameta.allure/ 搜索依赖,查看版本
1.1、Maven引用testng
<dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-testng</artifactId> <version>2.13.2</version> <scope>test</scope> </dependency>
1.2、maven配置maven-surefire-plugin
在maven项目的pom.xml文件中添加maven-surefire-plugin配置
<build> <plugins