skillfed

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).

pytest-sugar v1.1.1 8.2M downloads/30d#1,653 on PyPI1,533
Permissive license BSD AGING released

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

uv

uv add pytest-sugar

poetry

poetry add pytest-sugar

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: LibrariesTopic :: Software Development :: TestingTopic :: Utilities

Tags

pytest output formattingtest progress barpytest plugin visualbetter pytest outputtest failure displaypytest colored outputtest result formatting
pytest-plugintest-outputcli-enhancement

More Libraries packages