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](https://travis-ci.org/Teemu/pytest-sugar.svg?branch=master)](https://travis-ci.org/Teemu/pytest-sugar) [![Pypi version](https://img.shields.io/pypi/v/pytest-sugar.svg)](https://pypi-hypernode.com/project/pytest-sugar/)

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

![Demo](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 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:

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/Teemu/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.9.3.tar.gz (12.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pytest-sugar-0.9.3.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for pytest-sugar-0.9.3.tar.gz
Algorithm Hash digest
SHA256 1630b5b7ea3624919b73fde37cffb87965c5087a4afab8a43074ff44e0d810c4
MD5 00f129ffb8fd92f79242d93191f62cfc
BLAKE2b-256 ba35edf24df4b2fe7d9005bdb9d166c18ae9cefd8b664e7fb2c8dfb7bc9db184

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