执行报告 步骤:
1. mvn test clean
2.allure serve allure-results --- 启用报告服务器
报错:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project testng_allure: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
解决方法:
cmd下进行 mvn -v 查看maven运行环境
设置 mvn.cmd 首行为 --------------》set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191
成功!