skillfed

allure-pytest

Allure pytest integration

allure-pytest v2.16.0 8.1M downloads/30d#1,660 on PyPI813
Permissive license Apache-2.0 Active released

What it is and what it does

allure-pytest is a pytest plugin that captures test execution data and writes it in Allure Report format, enabling rich interactive dashboards of test results. It hooks into pytest's execution lifecycle to record test outcomes, durations, attachments, and custom metadata, then outputs structured result files that the Allure command-line tool can render into an HTML report.

The plugin is designed for teams that want detailed test visibility beyond pytest's native output—showing test history trends, failure categorization, and the ability to attach screenshots or logs to specific test cases. It requires pytest as a runtime dependency and integrates seamlessly into existing pytest workflows with minimal configuration.

Use it for:

  • Generate interactive dashboards of test results with pass/fail trends and execution history for CI/CD pipelines.
  • Attach screenshots, logs, or other artifacts to individual test cases for post-mortem analysis of failures.
  • Organize test results by severity, feature, or custom categories to help teams prioritize debugging.
  • Share formatted test reports with non-technical stakeholders via the Allure web interface.
  • Track test execution performance and flakiness over time across multiple test runs.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates pytest with Allure Report to generate rich, interactive test reports with detailed execution history, attachments, and test categorization.

Yes. Active maintenance, permissive license, low install friction, and no known vulnerabilities. Recommended for teams already using pytest who want structured, shareable test reporting beyond console output. The plugin integrates cleanly and adds value for CI/CD visibility and post-run analysis.

Install

allure-pytest on PyPI

pip

pip install allure-pytest

uv

uv add allure-pytest

poetry

poetry add allure-pytest

Installing allure-pytest

Before you install

Low friction installation with a pure-Python wheel. Active maintenance—last commit 2026-07-10, production-stable status. Depends only on pytest and allure-python-commons, both widely available.

License in practice

Apache-2.0 permissive license allows use in commercial and open-source projects with minimal restrictions; attribution required.

Quickstart

pip install allure-pytest
pytest --alluredir=./allure-results ./tests
allure serve ./allure-results

Verify before relying

  • Whether allure-python-commons is automatically installed as a transitive dependency or must be installed separately.
  • Whether the generated Allure report output requires Java or other runtime dependencies to view.

Package facts

License Apache-2.0 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 2 — pytest, allure-python-commons
Maintenance actively maintained — 109 days since the last release
Last repo commit
First released
Downloads 8,136,290/month — #1,660 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: allure_pytest-2.16.0-py3-none-any.whl

Keywords: allure, reporting, pytest

Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Quality AssuranceTopic :: Software Development :: Testing

Tags

pytest test reportingallure report integrationtest execution visualizationpytest html reportstest result documentation
test-reportingpytest-pluginci-cd

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

allure-pytest-bdd

Integrates Allure Report with Pytest-BDD to…

permissive · top 15,000 on PyPI

allure-pytest-default-results

Generates default "unknown" status results for…

unclear · top 15,000 on PyPI

allure-python-commons

Provides the common API and object model for…

permissive · top 5,000 on PyPI

allure-robotframework

Integrates Robot Framework test execution with…

permissive · top 15,000 on PyPI

allure-combine

Converts an Allure test report folder into a…

permissive · top 15,000 on PyPI

allure-behave

Integrates Behave BDD test execution with…

permissive · top 15,000 on PyPI

pytest-html

Generates HTML reports for pytest test results,…

copyleft · top 1,000 on PyPI

pytest-excel

A pytest plugin that generates Excel reports…

permissive · top 15,000 on PyPI

qase-pytest

A pytest plugin that reports test results to…

permissive · top 15,000 on PyPI

behavex

BehaveX extends Behave with parallel test…

unclear · top 15,000 on PyPI