'Allure report: nothing shown in Chrome
I'm trying to use Allure-framework to generate a report for my Selenium WebDriver tests. I use JUnit framework and allure-maven-plugin with version 1.3.9 of Allure. I run tests with mvn test then generate the report using mvn site. I see generated report in target/site/allure-maven-plugin/ directory. When I open index.html page with Firefox it works normally. However when doing the same thing in Chrome or Safari I see nothing.
What's wrong? Am I missing something? My pom.xml file is located here.
Solution 1:[1]
To use allure report in chrome, you have two options:
- Use
mvn allure:servetarget. It will generate the report and open a tab in Chrome (if default browser) - Generate the report using
mvn allure:reporttarget and serve the site your self, using any http server. if you have node you can usehttp-serverfor examplenpm install http-server -gand thenhttp-server target/site/allure-maven-plugin)
DO NOT use --allow-file-access-from-files flag, is it DANDEGEROUS
Solution 2:[2]
To open your report in Chrome browser use the below command in cmd prompt
allure open path_to_allure_report_folder
or use the below command if above command does not work
allure serve path_to_allure_report_folder
This will open your report.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | sahlouls |
| Solution 2 |
