allure-combine

1.0.11 · deprecated · verified Thu Apr 16

Allure-combine (v1.0.11) is a Python library and console script that generates a single, self-contained HTML file from an already-generated Allure report folder. It packages all report assets (data, scripts, styles) into a `complete.html` file, allowing for easy sharing and viewing without a local web server. The latest version was released on June 29, 2023, with an infrequent release cadence.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import and use `combine_allure` to create a single HTML report from a previously generated Allure report directory.

import os
from allure_combine import combine_allure

# Assuming an Allure report has been generated at './allure-report-generated/'
# e.g., by running `allure generate ./allure-results -o ./allure-report-generated`

report_path = './allure-report-generated'

# 1) Create complete.html in the allure-generated folder itself
# combine_allure(report_path)

# 2) Create complete.html in a specified destination folder
dest_folder = './single-html-reports'
if not os.path.exists(dest_folder):
    os.makedirs(dest_folder)

combine_allure(report_path, dest_folder=dest_folder)

# You can also use the command line:
# allure-combine ./allure-report-generated --dest ./single-html-reports

print(f"Single HTML report generated from '{report_path}' to '{dest_folder}/complete.html'")

view raw JSON →