Skip to main content
Files added late

3 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

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 as a dependency.

How to use it?

  1. Install the plugin - pip install pytest-stepwise.

  2. Run py.test --stepwise (you can also use the alias --sw).

  3. Watch the test fail and fix it.

  4. Run py.test --stepwise again. The test suite will continue to run right from where it was.

Use the --skip option to ignore one failing test and stop the test execution on the second failing test instead. This is useful if you get stuck on a failing test and just want to ignore it until later.

When is this useful?

pytest-stepwise was written for use when a large part of the test suite is failing. In this case, pytest-stepwise allows you to focus on fixing one test at the time instead of being overwhelmed by all failing tests. It should however be noted that all tests need to be re-run after to make sure that any changes made when fixing one test has not broken some other test.

Please submit an issue if you have any suggestions regarding use cases of pytest-stepwise.

Compatibility

pytest-stepwise is compatible with pytest 2.2 -> 2.8. For pytest 2.7 and earlier, pytest-cache is required as a dependency.

Changelog

  • 0.1 - Initial version.

  • 0.2 - Clear cache after test run when the plugin is not active. Added --skip option.

  • 0.3 - Fixed issue when failing tests are removed. Fixed compatibility with --pdb option. Stop on errors as well as on test failures.

  • 0.4 - Refactoring, pytest 2.8 compatiblity. Stop test execution on collection errors.

Release files for pytest-stepwise 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Files added late

3 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for pytest-stepwise 0.4
File Size Uploaded
pytest-stepwise-0.4.tar.gz 3.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pytest-stepwise 0.4
File Interpreter ABI Platform
pytest_stepwise-0.4-py2.py3-none-any.whl Python 2, Python 3 none any Details
pytest_stepwise-0.4-py2.7.egg Legacy Egg format - - Details

Total release size: 15.5 kB

Release files / pytest-stepwise-0.4.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL pytest-stepwise-0.4.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6f5a47f2fd91d4d9522334b1694e18ea74883cea1cf0ac585b4af70098089051
BLAKE2b-256 checksum
How to use checksums
4a577dd848cfec8f8ca8fc94c26a7df798273ce336e804c9e43598b08d0467e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pytest_stepwise-0.4-py2.py3-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL pytest_stepwise-0.4-py2.py3-none-any.whl
Size 5.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f2232c81a8c3a7a4fdf56a5f8d8e032d24b24fe4c8f568edee0e0d5b6992ef85
BLAKE2b-256 checksum
How to use checksums
4d1bd5e55cbfbb96e64900ba474aaf9c80e1aaa873886adc448f2342d2b1d14e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pytest_stepwise-0.4-py2.7.egg

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL pytest_stepwise-0.4-py2.7.egg
Size 6.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
0707e30d1389eeab5cbfe015811932ad50765718caacbefc41a3755e1afeec4d
BLAKE2b-256 checksum
How to use checksums
f5d44bfd09f411452276bd49bb9ce679f7ab018a32c87804b0b7a56e8cbb0d28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

3 release files

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page