pytest-rich
Leverage rich for richer test session output
What it is and what it does
pytest-rich is a pytest plugin that integrates rich to enhance how test results are displayed in the terminal. It wraps pytest's output with rich's formatting capabilities to provide colored and structured test session reports. The plugin depends on pytest, rich, and attrs, and runs on Python 3.9 and later across CPython and PyPy implementations.
The maintainer explicitly describes this as a proof-of-concept seeking a new maintainer, indicating the plugin works but is not feature-complete and welcomes community contributions. It is actively maintained with recent activity. Installation is straightforward with no compiled dependencies or complex setup requirements.
Use it for:
- Improve readability of test output in local development by adding color and structure to pytest results.
- Make CI/CD test logs more scannable and visually distinct between passing, failing, and skipped tests.
- Enhance terminal-based test reporting for projects that run pytest in interactive shells.
- Experiment with pytest output customization as a foundation for building more advanced test reporting plugins.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that uses rich to format and colorize test session output with enhanced terminal presentation.
Yes, if you want richer pytest output and are comfortable with a proof-of-concept plugin. The low install friction, active maintenance, MIT license, and lack of known vulnerabilities make it safe to try. However, be aware that the maintainer is seeking adoption and the feature set may evolve; it is not a mature, feature-locked tool.
Install
pytest-rich on PyPI
pip
pip install pytest-richuv
uv add pytest-richpoetry
poetry add pytest-richInstalling pytest-rich
Before you install
Low friction install with three straightforward runtime dependencies (attrs, pytest, rich). Actively maintained with recent commits as of August 2026.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install pytest-rich
Then run pytest normally:
pytest
Verify before relying
- What specific output enhancements or formatting changes does the plugin apply to pytest results beyond basic colorization.
- Whether the plugin is compatible with pytest plugins that also modify output formatting or terminal behavior.
- Performance impact of rich formatting on large test suites or CI/CD environments.
- Current feature completeness and roadmap given the maintainer's stated search for adoption.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — attrs, pytest, rich |
| Maintenance | actively maintained — 610 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 143,551/month — #11,172 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest_rich-0.2.0-py3-none-any.whl
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
pytest-prettyA pytest plugin that formats test output with…
permissive · top 5,000 on PyPI
pytest-xmlA pytest plugin that generates XML output from…
unclear · top 15,000 on PyPI
pytest-loggingA pytest plugin that configures Python logging…
permissive · top 15,000 on PyPI
pytest-icdiffA pytest plugin that replaces default assertion…
permissive · top 5,000 on PyPI
pytest-sugarA pytest plugin that improves test output with…
permissive · top 5,000 on PyPI
pytest-regressionsProvides pytest fixtures for writing regression…
permissive · top 5,000 on PyPI
pytest-jsonA pytest plugin that generates JSON reports of…
permissive · top 15,000 on PyPI
pytest-custom-exit-codeA pytest plugin that lets you customize the…
permissive · top 5,000 on PyPI
pytest-emojiAdds emoji indicators to pytest test result…
permissive · top 15,000 on PyPI
pytest-snapshotA pytest plugin that enables snapshot…
permissive · top 5,000 on PyPI