Pytest plugin generating timestamped Allure reports with configurable settings, CI/CD-ready. No more report overwrites.
Project description
allure-pytest-auto
Pytest plugin generating timestamped Allure reports with configurable settings, CI/CD-ready. No more report overwrites.
✨ Features
- ✅ Creates timestamped Allure HTML reports
- ✅ Optional auto-open report after test execution
- ✅ Single config file for Allure + environment.properties
- ✅ Works with local runs & CI/CD pipelines
- ✅ Zero boilerplate — no scripts needed
📸 Screenshots
Local Run
CI/CD Run
📥 Installation
pip install allure-pytest-auto
⚙️ Requirements
System Requirements
- Python: >= 3.8
- Allure CLI: >= 2.24.0
Python Dependencies (pip)
- pytest: >= 7.0
- allure-pytest: >= 2.13
🚀 Quick Start
-
Create a configuration file allure_pytest_auto.toml (recommended at project root)
-
Run the below command:
pytest --alluredir=allure-results --allure-pytest-auto-config=allure_pytest_auto.toml
⚙️ Configuration
Recommended at project root.
allure_pytest_auto.toml
#Full path of Allure CLI. If allure binary is in path env variable use "allure". Use "allure" for CICD
#If not defined, defaults to "allure"
allure_cli_path = "allure"
#base directory to save timestamped allure report. If not defined, defaults to "allure-report"
allure_report_dir = "allure-report"
#Report name for allure report. If not defined or kept as empty string "", defaults to "Allure report"
report_title = "allure-pytest-auto demo"
#open report after run - true or false
open_report_by_default = "false"
#environment.properties
[environment]
ENV = "dev"
BUILD = "223"
DESCRIPTION = "Unit tests"
| Config | Description | Default |
|---|---|---|
| allure_cli_path | Full path to allure cli (e.g. /opt/allure/bin/allure OR C:/Allure/bin/allure.bat) If allure cli is in path environment variable use "allure". For CI/CD use "allure" |
allure |
| allure_report_dir | Path to base report directory in which timestamped allure report folders will be created | allure-report |
| report_title | Title in generated allure report | Allure Report |
| open_report_by_default | Opens allure report post run if True (ignored for cicd runs) | True |
| [environment] | Content of environment.properties | N/A |
🧪 Behavior
🧑💻 Local Runs
- ✅ Single config file for Allure + environment.properties
- ✅ Timestamped report directories
- ✅ Optional auto-open in browser
🤖 CI/CD Runs
- ✅ Single config file for Allure + environment.properties
- ✅ Fixed report directory. No timestamped report directories
- ✅ No Auto-open.
🧩 CLI Options
--alluredir → Allure results directory (required)
--allure-pytest-auto-config → Path to allure_pytest_auto config file (required)
❓ FAQ
See the FAQ for common questions.
📜 License
MIT
✉️ Contact
For questions, issues, or contributions:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file allure_pytest_auto-1.0.0.tar.gz.
File metadata
- Download URL: allure_pytest_auto-1.0.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
284cee46897a2156a677f0e50630b52a62599748693b81b80c975b22da55bf68
|
|
| MD5 |
91e22e3714f2e985a337c2bd7a43e706
|
|
| BLAKE2b-256 |
8a9c7c76e1e586bfe71ac66cf9b42bfdb668f7f12f2395433451a258ec741278
|
File details
Details for the file allure_pytest_auto-1.0.0-py3-none-any.whl.
File metadata
- Download URL: allure_pytest_auto-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65e02f6766960c3a2caefa5e2b3481ea479420c4e891015f0cc6fb996e29e3ad
|
|
| MD5 |
a49f8783aedbf12b6a5134cee05a0db5
|
|
| BLAKE2b-256 |
e0870be2a9fe6bfe68515da4e9018ee2a90cddad66a6e788b4cdee2a667da589
|