pytest plugin for pretty printing the test summary.
Python
474
31 commits
updated Jun 4, 2025
Opinionated pytest plugin to make output slightly easier to read and errors easy to find and fix.
pytest-pretty's only dependencies are rich and pytest itself.
One-line info on which test has failed while tests are running:

A rich table of failures with both test line number and error line number:

This is extremely useful for navigating to failed tests without having to scroll through the entire test output.
Including time taken for the test run:

pip install -U pytest-pretty
If you're using pytest-pretty (or indeed, just pytest) with GitHub Actions, it's worth adding the following to the top of your workflow .yml file:
env:
COLUMNS: 120
This will mean the pytest output is wider and easier to use, more importantly, it'll make the error summary table printed by pytest-pretty much easier to read, see this discussion for more details.
pytester_pretty fixtureThe pytest_pretty provides pytester_pretty fixture that work with modified version of output. It is designed to drop in places replacement of pytester fixture and uses it internally.
So to use them it is required to set pytest_plugins = "pytester" as mentioned in pytest documentation https://docs.pytest.org/en/latest/reference/reference.html#pytester
576 followers · starred Nov 2022
32,377 followers · starred Jan 2023
3,336 followers · starred Jan 2023
424 followers · starred May 2023
pytest plugin for pretty printing the test summary.
Python
474
31 commits
updated Jun 4, 2025
Opinionated pytest plugin to make output slightly easier to read and errors easy to find and fix.
pytest-pretty's only dependencies are rich and pytest itself.
One-line info on which test has failed while tests are running:

A rich table of failures with both test line number and error line number:

This is extremely useful for navigating to failed tests without having to scroll through the entire test output.
Including time taken for the test run:

pip install -U pytest-pretty
If you're using pytest-pretty (or indeed, just pytest) with GitHub Actions, it's worth adding the following to the top of your workflow .yml file:
env:
COLUMNS: 120
This will mean the pytest output is wider and easier to use, more importantly, it'll make the error summary table printed by pytest-pretty much easier to read, see this discussion for more details.
pytester_pretty fixtureThe pytest_pretty provides pytester_pretty fixture that work with modified version of output. It is designed to drop in places replacement of pytester fixture and uses it internally.
So to use them it is required to set pytest_plugins = "pytester" as mentioned in pytest documentation https://docs.pytest.org/en/latest/reference/reference.html#pytester
576 followers · starred Nov 2022
32,377 followers · starred Jan 2023
3,336 followers · starred Jan 2023
424 followers · starred May 2023