pytest-sugar
pytest-sugar is a plugin for pytest that changes the default look and feel of pytest (e.g. progressbar, show tests that fail instantly).
What it is and what it does
pytest-sugar is a pytest plugin that replaces the default test output with a more visually appealing and informative display. It adds a progress bar, shows test failures and errors instantly rather than waiting for the full run to complete, and uses colored output to make results easier to scan. The plugin activates automatically once installed and requires only pytest and termcolor as dependencies.
It's designed for developers who run tests frequently and want faster feedback during development. The plugin supports command-line options to customize behavior—such as forcing output in non-interactive environments (CI systems) and integrating with Playwright trace files—and can be disabled on a per-run basis if needed. It works across Windows, macOS, and POSIX systems.
Use it for:
- Local test development: run pytest normally and get instant visual feedback on failures as they occur
- CI/CD pipelines: use --force-sugar to ensure colored progress output in non-interactive environments
- Debugging test suites: see which tests fail immediately rather than waiting for the full suite to complete
- Playwright integration: automatically detect and display Playwright trace files stored in test-results or a custom directory
- Verbose test reporting: use pytest --verbose with pytest-sugar for one-test-per-line output with better formatting
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that improves test output with a progress bar, instant failure display, and better formatting of results.
Yes, if you run pytest frequently and want better visual feedback. The plugin is low-friction to install, has no notable security issues, and uses a permissive license. However, the 356-day gap since the last release suggests the project is aging; verify that it remains compatible with your pytest and Python versions before relying on it in production CI systems.
Install
pytest-sugar on PyPI
pip
pip install pytest-sugaruv
uv add pytest-sugarpoetry
poetry add pytest-sugarInstalling pytest-sugar
Before you install
Low friction: pure Python wheel with only pytest and termcolor as runtime dependencies. Maintenance shows aging status—last release 356 days ago—but the repository remains active and the project has been stable since its 2013 inception.
License in practice
BSD license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install pytest-sugar
pytest
# Plugin activates automatically; use 'pytest -p no:sugar' to disable
Verify before relying
- Whether the 356-day gap since last release indicates active maintenance or dormancy relative to pytest's release cadence
- Compatibility with pytest versions newer than 6.2 and Python 3.13+ in practice
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pytest, termcolor |
| Maintenance | aging — 356 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,196,404/month — #1,653 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest_sugar-1.1.1-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
pytest-progressA pytest plugin that displays real-time test…
permissive · top 15,000 on PyPI
pytest-prettyA pytest plugin that formats test output with…
permissive · top 5,000 on PyPI
pytest-instafailA pytest plugin that displays test failures and…
permissive · top 5,000 on PyPI
pytest-richA pytest plugin that uses rich to format and…
permissive · top 15,000 on PyPI
pytest-htmlGenerates HTML reports for pytest test results,…
copyleft · top 1,000 on PyPI
pytest-excelA pytest plugin that generates Excel reports…
permissive · top 15,000 on PyPI
pytest-clarityA pytest plugin that displays colored,…
permissive · top 15,000 on PyPI
pytest-checkA pytest plugin that allows tests to continue…
unclear · top 5,000 on PyPI
pytest-regressionsProvides pytest fixtures for writing regression…
permissive · top 5,000 on PyPI