Reputation: 177
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
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)
Upvotes: 15
Views: 34543
Reputation: 2743
Since release 2.24, you can generate single file reports using the --single-file
option:
$ allure generate --single-file path/to/allure-results
Upvotes: 10
Reputation: 2052
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
Upvotes: 2
Reputation: 11
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
Upvotes: 1
Reputation: 3297
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
.
Upvotes: 1
Reputation: 346
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:
Hope, it helps.
Upvotes: 8
Reputation: 49
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.
Upvotes: 0
Reputation: 696
You can use this docker container to render and export an emailable report https://github.com/fescobar/allure-docker-service#customize-emailable-report
Upvotes: 1