Skip to content
a plugin for py.test that changes the default look and feel of py.test (e.g. progressbar, show tests that fail instantly)
Branch: master
Clone or download
blueyed tests: fix test_item_count_after_pytest_collection_modifyitems (#169)
`-p no:sugar` never worked to disable pytest-sugar, and the test assumes
pytest-sugar is used.
Latest commit a210316 Feb 11, 2019

README.md

pytest-sugar

pytest-sugar is a plugin for py.test 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:

$ 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 for more details.

You can’t perform that action at this time.