allure-report-exporter
Generate professional PDF and DOCX reports from Allure results, with full support for Allure Commandline 2.37.0+.
This project intentionally uses:
allure generateto build official Allure HTML.allure-report-html/widgets/*.json+data/*as the parsing source.
This makes the exporter resilient to raw results schema shifts.
Highlights
- Allure 2.37.0+ compatibility precheck
pdf,docx,both, andhtmlbuild modes- Rich per-test detail: parameters, setup/test/teardown steps, attachments
- Clickable table of contents for quick navigation
- Branding support: custom logo and footer text
- Optional template and CSS override for fully custom report styling
- Works on Windows and Linux
Documentation
- GitHub Pages docs: https://rmutegeki.github.io/allure-report-exporter/
- Includes onboarding for:
- new users (install, quick start, CLI, troubleshooting)
- developers (setup, architecture, testing, release workflow)
Run docs locally:
# pip
python -m pip install -e .[docs]
mkdocs serve
# uv
uv sync --extra docs
uv run mkdocs serve
Installation
Install with pip
python -m pip install allure-report-exporter
python -m playwright install chromium
Install with uv
uv tool install allure-report-exporter
uvx playwright install chromium
For development (editable install):
# pip
python -m pip install -e .[dev]
# uv
uv sync --extra dev
Allure prerequisite
Install Allure Commandline 2.37.0 or newer and verify:
allure --version
The CLI validates version before report generation.
Quick start
allure-report build --results ./allure-results --out ./allure-report-out --format both
Outputs:
report.pdfreport.docxreport-print.htmlallure-report-html/(kept by default)
Usage examples
Build HTML only:
allure-report build --results ./allure-results --out ./allure-report-out --format html
Build PDF only:
allure-report build --results ./allure-results --out ./allure-report-out --format pdf
Build DOCX only:
allure-report build --results ./allure-results --out ./allure-report-out --format docx
Build both:
allure-report build --results ./allure-results --out ./allure-report-out --format both
Include metadata:
allure-report build \
--results ./allure-results \
--out ./allure-report-out \
--format both \
--title "Nightly QA Report" \
--project "Turnlamp" \
--build-url "https://ci.example/build/124" \
--commit "abc1234" \
--branch "main" \
--environment OS:Windows \
--environment Browser:Chromium
Branding and template customization
Add a logo and footer text
allure-report build \
--results ./allure-results \
--out ./allure-report-out \
--format both \
--logo-path ./branding/company-logo.png \
--footer-text "Copyright dSPACE 2026"
Use your own template and CSS
allure-report build \
--results ./allure-results \
--out ./allure-report-out \
--format pdf \
--template-file ./custom/report_template.html.j2 \
--css-file ./custom/report.css
Start from the defaults:
Viewing official Allure HTML
Do not open allure-report-html/index.html directly with file://.
Use:
allure open ./allure-report-out/allure-report-html
or:
cd ./allure-report-out/allure-report-html
python -m http.server 8080
Then open http://localhost:8080.
Testing
pytest -q
Publish to PyPI
Full release instructions are in PUBLISHING.md.
Project structure
allure-report/
pyproject.toml
README.md
PUBLISHING.md
CHANGELOG.md
LICENSE
allure_report_exporter/
tests/
Release files for allure-report-exporter 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| allure_report_exporter-1.0.1.tar.gz | 25.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| allure_report_exporter-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.4 kB
Release files / allure_report_exporter-1.0.1.tar.gz
| Download URL | allure_report_exporter-1.0.1.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f9f7ee48b34cf593cb2adbaf23fd937e7998e1efe9b0b75376f9b3d69c22d9d
|
|
BLAKE2b-256 checksum How to use checksums |
197386cf5197f2704c17d5f7dc085b2dc2e11460050aff17fb74493a7b69cec4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / allure_report_exporter-1.0.1-py3-none-any.whl
| Download URL | allure_report_exporter-1.0.1-py3-none-any.whl |
|---|---|
| Size | 24.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72be43b5f184e64962631ee6798f82f0d176fab6f34888eb6867ec4c601715eb
|
|
BLAKE2b-256 checksum How to use checksums |
199688c4e6326df47cc23c2b04a5cdc4357b20653147620bf78588351bbdc54c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|