pytest-sugar is a plugin for pytest that changes the default look and feel of pytest (e.g. progressbar, show tests that fail instantly).
Project description
pytest-sugar
pytest-sugar is a plugin for pytest that shows failures and errors instantly and shows a progress bar.
Requirements
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
Installation
To install pytest-sugar:
pip install pytest-sugar
Then run your tests with:
$ pytest
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest-sugar-0.9.5.tar.gz
.
File metadata
- Download URL: pytest-sugar-0.9.5.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eea78b6f15b635277d3d90280cd386d8feea1cab0f9be75947a626e8b02b477d |
|
MD5 | 238ff155746a5f80846e72b256034de0 |
|
BLAKE2b-256 | e2d0b770e5d47794323f06dab98c328c6d25758f4aca015017e709af3d1abee2 |
File details
Details for the file pytest_sugar-0.9.5-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_sugar-0.9.5-py2.py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3da42de32ce4e1e95b448d61c92804433f5d4058c0a765096991c2e93d5a289f |
|
MD5 | 95f6e78ece677e7991e7c17b370ec4c1 |
|
BLAKE2b-256 | 59304a8c1dc18c9b33a24d66bed3b1f164bb67341055cefe1469a7d4363da28f |