说明指示将environment.xml添加到Allure结果目录(https://github.com/allure-framework/allure-core/wiki/Environment),但是此文件夹在mvn clean上被删除,因此文件将被删除.有没有办法在每次构建时生成此文件?
谢谢.
解决方法:
只需输入你的src / main / resources /并通过mvn test或mvn site上的maven resources plugin复制到你的结果目录:
maven-resources-plugin
copy-allure-environment
pre-site
copy-resources
${basedir}/target/allure-results
src/main/resources
environment.xml
标签:allure,java,maven,testng
来源: https://codeday.me/bug/20190727/1557977.html