allure-results在target目錄下生成


pom.xml配置文件中添加:

<property>
    <name>allure.results.directory</name>
    <value>${project.build.directory}/allure-results</value>
</property>
<property>
    <name>allure.link.issue.pattern</name>
    <value>https://example.org/issue/{}</value>
</property>

添加位置參考下圖:

 

 

注意:

配置之后,執行 mvn test 生成的allure-results位於target目錄下。

打開報告時需要進入到target目錄下執行allure serve allure-results。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM