Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to export Allure Report to a single html file? To share with the team

Right now, I am generating the Allure Report through the terminal by running the command: allure serve {folder that contains the json files}, but with this way the HTML report will only be available to my local because

  1. The json files that generated the report are in my computer
  2. I ran the command through the terminal (if i kill the terminal, the report is gone)

I have tried: Saving the Allure Report as Webpage, Complete, but the results did not reflect to the page, all i was seeing was blank fields.

So, what im trying to to do is after I execute the command to generate the report, I want to have an html file of the report that i can store, save to my computer or send through email, so i do not have to execute the command to see the previous reports. (as much as possible into 1 html file)

like image 978
Jake Avatar asked Feb 21 '18 20:02

Jake


1 Answers

It's doesn't work because allure report as you seen is not a simple Webpage, you could not save it and send as file to you team. It's a local Jetty server instance, serves generated report and then you can open it in the browser.

Here for your needs some solutions:

  1. One server(your local PC, remote or some CI environment), where you can generate report and share this for you team. (server should be running alltime)
  2. Share allure report folder as files({folder that contains the json files}) to teammates, setup them allure tool, and run command allure server on them local(which one).

Hope, it helps.

like image 165
V. Rob Avatar answered Nov 15 '22 00:11

V. Rob