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.2.3.tar.gz (75.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-0.2.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_lf_skip-0.2.3.tar.gz
  • Upload date:
  • Size: 75.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytest_lf_skip-0.2.3.tar.gz
Algorithm Hash digest
SHA256 3146e46b75d8509edbd1d45b59f141f840eaa23e0b9d4cbebd34203521bc703f
MD5 f50030154f099177025e954371cc30b7
BLAKE2b-256 1b787dfe849ca801eb27d54f227264585150db4fe121d74393fadb323a4db760

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_lf_skip-0.2.3.tar.gz:

Publisher: ci.yml on alexfayers/pytest-lf-skip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pytest_lf_skip-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytest_lf_skip-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef632eccca37686f2a38dd3e0af7d36cec2bce80d845a6c4ec01213f16115351
MD5 f45ee0d2f5ce84ee6f1b6e1c643e3a4f
BLAKE2b-256 ab4ae152e67209138a25204ffd16b239976159a2d30af971ab7ad0d1d722aceb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_lf_skip-0.2.3-py3-none-any.whl:

Publisher: ci.yml on alexfayers/pytest-lf-skip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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