Allure report: nothing shown in Chrome

This problem is related to default Webkit security settings which forbid doing Ajax requests on the local filesystem. You have at least two possible solutions:

  1. Serve index.html with some web-server like Nginx or Apache. This will emulate remote website and thus trick your browser. With Allure CLI 2.0+ this can be done using the following command:

$ allure report open

  1. Use --allow-file-access-from-files Chrome flag. See details in this question.

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.


To use allure report in chrome, you have two options:

  • Use mvn allure:serve target. It will generate the report and open a tab in Chrome (if default browser)
  • Generate the report using mvn allure:report target and serve the site your self, using any http server. if you have node you can use http-server for example npm install http-server -g and then http-server target/site/allure-maven-plugin)

DO NOT use --allow-file-access-from-files flag, is it DANDEGEROUS