pytest-sugar
testing
Links
pytest-sugar
is a plugin for the pytest
testing framework that enhances its default output. It introduces features such as a progress bar, instant display of failing tests, and improved overall aesthetics, making test results more informative and visually appealing.
oaicite:0
Usage Example
After installing pytest-sugar
, it activates automatically. Run your tests as usual:
pytest
For more detailed output, use the verbose option:
pytest --verbose
To run tests without pytest-sugar
, disable the plugin:
pytest -p no:sugar
These commands allow you to control the level of detail in your test outputs and choose whether to utilize pytest-sugar
’s enhancements.
oaicite:1