Skip to main content

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

Project description

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",
    ]
}

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_lf_skip-0.4.0.tar.gz (70.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_lf_skip-0.4.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest_lf_skip-0.4.0.tar.gz.

File metadata

  • Download URL: pytest_lf_skip-0.4.0.tar.gz
  • Upload date:
  • Size: 70.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.5

File hashes

Hashes for pytest_lf_skip-0.4.0.tar.gz
Algorithm Hash digest
SHA256 18320cf49dcb7d44a49f1e33cc25958d4305340b2ab5814da09f5c534069aa6a
MD5 da0cf2a3a5fa1c1fc410e9793572265f
BLAKE2b-256 92f7b4d5ad5055d59d839f388ab165289897d2351a70bac676c4d23d202f305d

See more details on using hashes here.

File details

Details for the file pytest_lf_skip-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_lf_skip-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33361373a57ef44d6aaab621bf9fc6ae48279fe99fe4f7b37134810d53dc2565
MD5 4fde8aa9723599be537a36aa3a03be96
BLAKE2b-256 221d29d6c0fbb8741086dbaed799222fcb0f581ae32d4c69167d0786c58e781f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page