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

[![](https://travis-ci.org/Frozenball/pytest-sugar.svg?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 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/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.9.2.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pytest-sugar-0.9.2.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for pytest-sugar-0.9.2.tar.gz
Algorithm Hash digest
SHA256 fcd87a74b2bce5386d244b49ad60549bfbc4602527797fac167da147983f58ab
MD5 b9d03cad8eba9b032e98ff9c9ce54417
BLAKE2b-256 5559f02f78d1c80f7e03e23177f60624c8106d4f23d124c921df103f65692464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_sugar-0.9.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 26cf8289fe10880cbbc130bd77398c4e6a8b936d8393b116a5c16121d95ab283
MD5 cc2ca2b83c44a960c884bc2a576883e9
BLAKE2b-256 da3bf1e3c8830860c1df8f0e0f6713932475141210cfa021e362ca2774d2bf02

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