问题描述
我正在尝试在自动化项目中设置魅力"报告.我正在关注- https://github.com/allure-framework/allure- core/wiki/TestNG ,但是 http://localhost:8080 仅显示目录:/"文本.我还发现无法在Jetty服务器上部署Allure报告同样的问题,但是那里的解决方案没有帮助.
I am trying to set up Allure reports in my automation project. I am following - https://github.com/allure-framework/allure-core/wiki/TestNG, but the http://localhost:8080 only shows "Directory: /" text. I also found Unable to Deploy Allure report on Jetty server had the same problem but the solution there didn't help.
推荐答案
好像您的码头站点路径错误,请尝试从以下位置更改码头参数:
Looks like you have wrong site path for jetty, try to change jetty parameter from:
<webAppSourceDirectory>${project.basedir}/site/allure-maven-plugin</webAppSourceDirectory>
<webAppSourceDirectory>${project.build.directory}/site/allure-maven-plugin</webAppSourceDirectory>
这篇关于无法在Jetty服务器上查看“魅力"报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!