Customization¶
Add 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"
Override 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 built-in assets:
allure_report_exporter/assets/report_template.html.j2allure_report_exporter/assets/report.css
Practical template strategy¶
- Copy the default template and CSS into your repository.
- Add your company header, legal footer, and brand colors.
- Keep the same Jinja2 context keys unless you also update rendering code.
- Test with
--format htmlfirst, thenpdfanddocx.
Notes¶
- PDF comes from the printable HTML template rendered by Playwright.
- DOCX is generated independently via
python-docx; visual parity is close, not pixel-identical.