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 hashes)

Uploaded Source

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