Skip to main content

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

Project description

pytest-lf-skip

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

First, install the plugin.

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

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

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.1.0.tar.gz (32.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.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_lf_skip-0.1.0.tar.gz
  • Upload date:
  • Size: 32.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for pytest_lf_skip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 08b6145ba676496866e02804c9cc82ae2c136814d135ddca56a88bf14ee45adc
MD5 3c57c744d2bb6d5dab15acf4482c6cc5
BLAKE2b-256 140f90b6058dcc8711b5d766e65ba006af6846f570b003c42f67f010ee307f64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_lf_skip-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c623f0b91f5f6c45b7fe37f64696747aa78b61406f39f5125029892e20636ff1
MD5 903974e59062e7a43ed94a2830849018
BLAKE2b-256 00afd209f6641baaeb5995699f8ea2045c38d356d579c18941da4c4a22571bcc

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