pytest-saccharin is a updated fork of pytest-sugar, a plugin for pytest that changes the default look and feel of pytest (e.g. progressbar, show tests that fail instantly).
pytest-sugar is a plugin for pytest that shows failures and errors instantly and shows a progress bar.
You will need the following prerequisites in order to use pytest-sugar:
- Python 2.7, 3.4 or newer
- pytest 2.9.0 or newer
- pytest-xdist 1.14 or above if you want the progress bar to work while running tests in parallel
To install pytest-sugar:
pip install pytest-sugar
Then run your tests with:
If you would like more detailed output (one test per line), then you may use the verbose option:
$ pytest --verbose
If you would like to run tests without pytest-sugar, use:
$ pytest -p no:sugar
Running on Windows
If you are seeing gibberish, you might want to try changing charset and fonts. See this comment for more details.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for pytest-saccharin-0.9.5.post0.tar.gz