Skip to main content

py.test is a plugin for py.test that changes the default look and feel of py.test (e.g. progressbar, show tests that fail instantly).

Project description

# pytest-sugar

[![](https://travis-ci.org/Frozenball/pytest-sugar.png?branch=master)](https://travis-ci.org/Frozenball/pytest-sugar) ![](https://img.shields.io/pypi/v/pytest-sugar.svg)

pytest-sugar is a plugin for [py.test](http://pytest.org) that shows failures and errors instantly and shows a progress bar.

![](http://pivotfinland.com/pytest-sugar/img/video.gif)

## Requirements

You will need the following prerequisites in order to use pytest-sugar:

  • Python 2.7, 3.4 or 3.5

  • 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:

$ py.test

If you would like more detailed output (one test per line), then you may use the verbose option:

$ py.test –verbose

If you would like to run tests without pytest-sugar, use:

$ py.test -p no:sugar

## Running on Windows

If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Frozenball/pytest-sugar/pull/49#issuecomment-146567670) for more details.

Project 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.8.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

pytest_sugar-0.8.0-py2.py3-none-any.whl (8.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for pytest-sugar-0.8.0.tar.gz
Algorithm Hash digest
SHA256 3096bf48967000af09fdb682eaede43761a01cd7f66f013aa36881aa49ebd28e
MD5 8cafbdad648068e0e44b8fc5f9faae42
BLAKE2b-256 a5b0b2773dee078f17773a5bf2dfad49b0be57b6354bbd84bbefe4313e509d87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_sugar-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 439c7303ef6d008e7ce459c9b49d7175930a83798b968e3acdc7a99cc4133a43
MD5 1a0bd6554eaf4dd93465307c55dc6930
BLAKE2b-256 2200814121b3d577645a1f3037e44b69290e7d1371d7adc82cd9b43c21f821ac

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