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.1.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.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_lf_skip-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 76da47cb29067c0d9a4bab7f1a3673f683f62998d7e85ff3c95cac1dc62bcb7a
MD5 33bd7fb6fa1698e8a7eed91933e17d3d
BLAKE2b-256 31455c54124852adbe34016536fab269e533826fa1ba14ffe94b05a2505dd773

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_lf_skip-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b5747eeecf129aa202930e42fc729ade33d5644320c10bee948ba4e0b80611
MD5 ebd14bdcfb1244bb55ed08b4d6ba93bb
BLAKE2b-256 b5c5f37c9af5a7eca7696c636035d094adf772a2637a212225a27c140aedd63a

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