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 codecov 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.2.4.tar.gz (76.1 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.4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_lf_skip-0.2.4.tar.gz
  • Upload date:
  • Size: 76.1 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.4.tar.gz
Algorithm Hash digest
SHA256 5ab619f0da69c5b8896ec63624a535ce84d9915839fd7916c1088c2af5c0647d
MD5 16bf73e7a929441693d76344270aaa1e
BLAKE2b-256 c9f5dba9c5550834248c8653e3b9b0756cf352290ff1b0366cdff419599d2edc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_lf_skip-0.2.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: pytest_lf_skip-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b634e76f64bc5ef6255e5d4fd27003c2791754dfabff7371c611f656472c2bee
MD5 57f2e244cb6da0d605f982beade808da
BLAKE2b-256 125f0c75177aadc9e022a44dd637530f25ad3b16c6c03eb0024ed863b51bc9f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_lf_skip-0.2.4-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