allure-pytest
Allure pytest integration
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-pytestuv
uv add allure-pytestpoetry
poetry add allure-pytestInstalling 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
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
allure-pytest-bddIntegrates Allure Report with Pytest-BDD to…
permissive · top 15,000 on PyPI
allure-pytest-default-resultsGenerates default "unknown" status results for…
unclear · top 15,000 on PyPI
allure-python-commonsProvides the common API and object model for…
permissive · top 5,000 on PyPI
allure-robotframeworkIntegrates Robot Framework test execution with…
permissive · top 15,000 on PyPI
allure-combineConverts an Allure test report folder into a…
permissive · top 15,000 on PyPI
allure-behaveIntegrates Behave BDD test execution with…
permissive · top 15,000 on PyPI
pytest-htmlGenerates HTML reports for pytest test results,…
copyleft · top 1,000 on PyPI
pytest-excelA pytest plugin that generates Excel reports…
permissive · top 15,000 on PyPI
qase-pytestA pytest plugin that reports test results to…
permissive · top 15,000 on PyPI
behavexBehaveX extends Behave with parallel test…
unclear · top 15,000 on PyPI