Not able to view Allure report on Jetty server

2019-09-03 15:51发布

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.

1条回答
甜甜的少女心
2楼-- · 2019-09-03 16:49

Looks like you have wrong site path for jetty, try to change jetty parameter from:

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

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

查看更多
登录 后发表回答