Skip to main content

Run a test suite one failing test at a time.

Project description

Introduction

pytest-stepwise is a plugin for pytest that run all tests until a test fails, and then continue next test run from where the last run failed. You may think of it as a combination of the -x option, which exits the test run after a failing test, and the --lf option from pytest-cache, which only runs failing tests.

pytest-stepwise depends on pytest-cache, which will be installed by pip.

How to use it?

  1. Run py.test --stepwise.

  2. Watch the test fail and fix it.

  3. Again, run py.test --stepwise. The test suite will continue to run from right where it was.

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-stepwise-0.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file pytest-stepwise-0.1.tar.gz.

File metadata

File hashes

Hashes for pytest-stepwise-0.1.tar.gz
Algorithm Hash digest
SHA256 d0578f2be65de1d532c35e205adb9ddd0aa833917df2cf711cdaa5ae58f82fd4
MD5 5d9ba2037bc4ea04aa6741db9d6fedd6
BLAKE2b-256 4182ba79726770a0115ff6f7be9ecf411d22bedba967dee188d4433dd5acafb6

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