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-1.0.0.tar.gz (74.2 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-1.0.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest_lf_skip-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a511bde416d6955388414374d528b16a948bc245bf8e5aa3fca29ae4cd98f6e9
MD5 b8e89a45fc4a572927bf1e3317b74df0
BLAKE2b-256 1c2521b202d23b7c58753bde9bdeb585d6b95feb9181b583383704e3571e2344

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_lf_skip-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63d28b8754a0c63b73e6be766db82f47161b1cc9914a2c40c5cc0fa9b3b1bf22
MD5 de5c5090bc65dd7ae7ae8458079433ef
BLAKE2b-256 8ec35a05d48cb0ca8f9756f26cc6f3dadf2010cca47455f1af6ae58a27ba0bff

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