Allure in CI Pipelines and Dashboards

๐Ÿ“‹ Table of Contents โ–พ
  1. Publishing Allure Reports from CI
  2. Common Mistakes

Local reports are useful, but the real value appears when Allure is wired into CI pipelines and made available as a shared dashboard. This way, everyone can see the state of tests for each branch, build or release.

Publishing Allure Reports from CI

The typical flow is: run tests with Allure results enabled, archive the allure-results directory as an artifact and then generate and host the HTML report. Depending on your setup, you can publish the report to static hosting, an Allure server or keep it as a downloadable artifact.

# Example: GitHub Actions steps to archive Allure results
jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install deps
        run: npm ci
      - name: Run tests with Allure
        run: npm test -- --reporter=allure
      - name: Upload Allure results
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: allure-results
          path: allure-results
Note: Some teams use dedicated Allure servers or GitHub Pages to host HTML reports for each build or main branch run.
Tip: Link to the latest Allure report from your CI summary or pull request checks so developers can open it with one click.
Warning: Forgetting to use if: always() on artifact steps can result in missing reports for exactly the runs where tests failed.

Historical reports allow you to spot trends, such as the same test failing repeatedly or growing suite duration.

Common Mistakes

Mistake 1 โ€” Keeping Allure reports only on local machines

This limits collaboration.

โŒ Wrong: Expecting others to reproduce runs locally to see reports.

โœ… Correct: Publish reports from CI so they are available to the whole team.

Mistake 2 โ€” Not integrating reports into daily workflows

This reduces impact.

โŒ Wrong: Generating reports but never linking them in PRs or dashboards.

โœ… Correct: Make reports part of code review and release readiness checks.

🧠 Test Yourself

Why publish Allure reports from CI rather than only locally?