无法在 Jetty 服务器上查看 Allure 报告

Not able to view Allure report on Jetty server

我正在尝试在我的自动化项目中设置 Allure 报告。我正在关注 - 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 遇到了同样的问题,但那里的解决方案没有帮助。

看来您的 jetty 站点路径有误,请尝试更改 jetty 参数:

<webAppSourceDirectory>${project.basedir}/site/allure-maven-plugin</webAppSourceDirectory>

<webAppSourceDirectory>${project.build.directory}/site/allure-maven-plugin</webAppSourceDirectory>