pytest-excel
pytest plugin for generating excel reports
Decision gist · record as of 2026-08-14
Yes. The plugin is actively maintained, has no known vulnerabilities, low install friction, and a clear use case for teams that need Excel-formatted test reports. Install it if your workflow or stakeholders require test results in spreadsheet form; skip it if terminal or JSON reporting suffices.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or above; openpyxl must be installed alongside pytest-excel.
- Low friction install with three straightforward runtime dependencies.
- Actively maintained as of 2026-04-14, marked Production/Stable, and supports current Python versions (3.11+).
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open and closed projects with minimal obligations.
last release 2025-07-22 (388 days) · last repo commit 2026-04-14 · 16 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 266,185 downloads/mo, #8,305 on PyPI
Alternatives
Verify before relying
pip install pytest-excel openpyxl
Then run tests with:
py.test --excelreport=report.xls
For verbose output:
py.test --verbose --excelreport=report.xls- Whether the plugin handles test parameterization and fixtures in the Excel output.
- Performance characteristics with large test suites (thousands of tests).
- Compatibility with pytest plugins that also modify test reporting.
What it is and what it does
pytest-excel is a pytest plugin that captures test execution results and writes them to Excel (.xls) files. It integrates directly into pytest's test collection and execution pipeline, allowing you to generate structured reports without modifying your test code. The plugin depends on openpyxl for Excel file creation and pandas for data handling.
You invoke it by passing --excelreport=filename.xls to pytest; it supports verbose output (one test per line) and test collection-only mode (--collect-only) to document test structure without running them. Timestamp-based filenames are also supported via strftime formatting in the filename argument.
Use it for
- Generate Excel test reports for stakeholders who prefer spreadsheet formats over terminal output.
- Archive test results over time in a structured format for trend analysis and regression tracking.
- Export test documentation by running pytest with --collect-only to list all tests in a workbook.
- Integrate test reporting into CI/CD pipelines where Excel files are ingested by downstream tools.
- Create timestamped test reports automatically for each test run without manual file management.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The plugin is actively maintained, has no known vulnerabilities, low install friction, and a clear use case for teams that need Excel-formatted test reports. Install it if your workflow or stakeholders require test results in spreadsheet form; skip it if terminal or JSON reporting suffices.
Install
pytest-excel on PyPI
Before you install
Low friction install with three straightforward runtime dependencies. Actively maintained as of 2026-04-14, marked Production/Stable, and supports current Python versions (3.11+).
Requires Python 3.11 or above; openpyxl must be installed alongside pytest-excel.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open and closed projects with minimal obligations.
Quickstart
pip install pytest-excel openpyxl
Then run tests with:
py.test --excelreport=report.xls
For verbose output:
py.test --verbose --excelreport=report.xls
Verify before relying
- Whether the plugin handles test parameterization and fixtures in the Excel output.
- Performance characteristics with large test suites (thousands of tests).
- Compatibility with pytest plugins that also modify test reporting.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesopenpyxlpandaspytest |
| Maintenance | Actively maintained 388 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 266,185 / month, #8,305 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities |
Evidence: pytest_excel-1.8.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest excel report generator”
- pytest-excelA pytest plugin that generates Excel reports from test execution…
- pytest-htmlGenerates HTML reports for pytest test results, turning test…
- pytest-html-reporterGenerates static HTML test reports from pytest test runs, with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also pytest-html · pytest-tinybird · pytest-progress · pytest-md-report · allure-pytest · pytest-metadata · pytest-json · qase-pytest · pytest-sugar · pytest-nunit