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

7

15

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)

Metzger answered 21/2, 2018 at 20:4 Comment(1)
Follow my answer to the same question on stackoverflow. #41960581Mackoff
E
8

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.

Exponible answered 22/2, 2018 at 12:0 Comment(1)
Yeah, that's what i've been thinking, have my team install allure and put all the files that generates the report in s3.Metzger
C
9

Since release 2.24, you can generate single file reports using the --single-file option:

$ allure generate --single-file path/to/allure-results 
Cattle answered 12/10, 2023 at 17:1 Comment(1)
This working like a charm. Details here. github.com/allure-framework/allure2/pull/2072Meter
E
8

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.

Exponible answered 22/2, 2018 at 12:0 Comment(1)
Yeah, that's what i've been thinking, have my team install allure and put all the files that generates the report in s3.Metzger
C
2

I've made a tool to build whole allure generate' result folder into a single html file. https://github.com/MihanEntalpo/allure-single-html-file

Corrigendum answered 16/12, 2021 at 13:52 Comment(0)
F
1

You can use this docker container to render and export an emailable report https://github.com/fescobar/allure-docker-service#customize-emailable-report

Filamentous answered 2/6, 2020 at 8:14 Comment(0)
A
1

Yes you can generate HTML report.

You can use the command allure generate <alluredir> to create html files. This folder you could send around, but you can only directly open the index.html file with Edge or Firefox.

source

Armentrout answered 17/6, 2021 at 22:37 Comment(0)
F
1

Basically we need to deploy our allure-report folder to a server. So Navigate to allure-report folder, simply drag and drop to Netlify. That would generate a link that can be shared with anyone to access. However, this is not recommended to deploy like this if our allure-report folder has confidential data

Finny answered 22/9, 2021 at 15:24 Comment(0)
M
0

Allure report generates html in temp folder after execution and you can upload it to one of the server like netlify and it will generate an url to share.

Muttra answered 3/9, 2020 at 10:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.