Skip to main content

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

Build status Pypi version

pytest-sugar is a plugin for pytest that shows failures and errors instantly and shows a progress bar.

Demo

Similar projects

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-sugar-0.9.6.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

pytest_sugar-0.9.6-py2.py3-none-any.whl (9.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest-sugar-0.9.6.tar.gz.

File metadata

  • Download URL: pytest-sugar-0.9.6.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pytest-sugar-0.9.6.tar.gz
Algorithm Hash digest
SHA256 c4793495f3c32e114f0f5416290946c316eb96ad5a3684dcdadda9267e59b2b8
MD5 13f2164bcfedc87792ab7d16441d9d99
BLAKE2b-256 11712bddd9f3f7fb267b31d7c6236dfb021d28b843f810b3fff57cf9194ef34b

See more details on using hashes here.

File details

Details for the file pytest_sugar-0.9.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_sugar-0.9.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 30e5225ed2b3cc988a8a672f8bda0fc37bcd92d62e9273937f061112b3f2186d
MD5 7df66fc5471baebcd1a565f0622b1f66
BLAKE2b-256 3e054375ccf896e5dccce262a37a432ae0eea0fdaa8d6812020271ce9087263b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page