Skip to content

Customization

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.j2
  • allure_report_exporter/assets/report.css

Practical template strategy

  1. Copy the default template and CSS into your repository.
  2. Add your company header, legal footer, and brand colors.
  3. Keep the same Jinja2 context keys unless you also update rendering code.
  4. Test with --format html first, then pdf and docx.

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.