Skip to content

alexfayers/pytest-lf-skip

Repository files navigation

pytest-lf-skip

PyPI - Version PyPI - Python Version Coverage badge GitHub Actions Workflow Status pre-commit.ci status PyPI - Downloads GitHub commit activity GitHub last commit GitHub commits since latest release

A pytest plugin which makes --last-failed skip instead of deselect tests.

Installation

You can install pytest-lf-skip from pip:

pip install pytest-lf-skip

Usage

Just add the --lf-skip or --last-failed-skip argument to your pytest command when you use --last-failed:

pytest --last-failed --last-failed-skip

Now previously passed tests will be skipped instead of being deselected.

VS Code

If you are using VS Code, you can make use of the --auto-last-failed-skip-vscode argument, which will automatically enable --lf and --lf-skip when running tests from the VS Code test explorer.

To enable this, add the following to your settings.json:

{
    "python.testing.pytestArgs": [
        "--auto-last-failed-skip-vscode",
    ]
}

About

A pytest plugin which makes `--last-failed` skip instead of deselect tests.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •