Not able to view Allure report on Jetty server

2019-09-03 16:10发布

问题:

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:

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>