pytest-sugar is a plugin for the pytest testing framework that enhances its default output with a cleaner, more readable progress bar and immediate feedback on failing tests. It is actively maintained, currently at version 1.1.1, and releases new versions to support new pytest features or address compatibility issues.
pip install pytest-sugarNo compatibility data collected yet for this library.
Install the library and pytest. Create a simple test file. Run `pytest` from your terminal, and pytest-sugar's enhanced output will be automatically applied. No explicit imports are needed for basic usage.
Upgrade to Python 3.8 or newer, or downgrade pytest-sugar to <1.0.0 (not recommended).
Check pytest-sugar's `pyproject.toml` or `setup.py` on GitHub for its declared pytest version range and ensure your pytest installation falls within it. Upgrade both if necessary.
If you experience unexpected behavior, try running pytest with `--no-sugar` to disable the plugin, or temporarily disable other terminal-modifying plugins to identify the conflict source.