skillfed

pytest-rich

Leverage rich for richer test session output

pytest-rich v0.2.0 143.6K downloads/30d#11,172 on PyPI252
Permissive license MIT Active released

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-rich

uv

uv add pytest-rich

poetry

poetry add pytest-rich

Installing 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

Development Status :: 4 - BetaFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Testing

Tags

pytest output formattingrich test outputcolored pytest resultspytest terminal displaypytest plugin richenhanced test reportingpytest pretty output
pytest-pluginterminal-uitest-reporting

More Testing packages