Skip to main content

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.

GitHub Repository


✨ 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

Local Run

CI/CD 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

  1. Create a configuration file allure_pytest_auto.toml (recommended at project root)

  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

allure_pytest_auto-1.0.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

allure_pytest_auto-1.0.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

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

Hashes for allure_pytest_auto-1.0.0.tar.gz
Algorithm Hash digest
SHA256 284cee46897a2156a677f0e50630b52a62599748693b81b80c975b22da55bf68
MD5 91e22e3714f2e985a337c2bd7a43e706
BLAKE2b-256 8a9c7c76e1e586bfe71ac66cf9b42bfdb668f7f12f2395433451a258ec741278

See more details on using hashes here.

File details

Details for the file allure_pytest_auto-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for allure_pytest_auto-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65e02f6766960c3a2caefa5e2b3481ea479420c4e891015f0cc6fb996e29e3ad
MD5 a49f8783aedbf12b6a5134cee05a0db5
BLAKE2b-256 e0870be2a9fe6bfe68515da4e9018ee2a90cddad66a6e788b4cdee2a667da589

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page