【发布时间】:2016-09-23 15:01:49
【问题描述】:
我正在尝试在我的自动化项目中设置 Allure 报告。我正在关注 - https://github.com/allure-framework/allure-core/wiki/TestNG,但 http://localhost:8080 仅显示“目录:/”文本。我还发现Unable to Deploy Allure report on Jetty server 有同样的问题,但那里的解决方案没有帮助。
【问题讨论】:
我正在尝试在我的自动化项目中设置 Allure 报告。我正在关注 - https://github.com/allure-framework/allure-core/wiki/TestNG,但 http://localhost:8080 仅显示“目录:/”文本。我还发现Unable to Deploy Allure report on Jetty server 有同样的问题,但那里的解决方案没有帮助。
【问题讨论】:
看起来你有错误的码头站点路径,尝试更改码头参数:
<webAppSourceDirectory>${project.basedir}/site/allure-maven-plugin</webAppSourceDirectory>
到
<webAppSourceDirectory>${project.build.directory}/site/allure-maven-plugin</webAppSourceDirectory>
【讨论】: