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.3.0.tar.gz (78.6 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.3.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest_lf_skip-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c6288b38371fcc3efbbdaa8f454fddfc0aec4b1f134c4403292bc2ac669c9dfb
MD5 ad033897a0d519298d330bfb9a30664e
BLAKE2b-256 075707d526a83b555d286ddfe3d095d79ecaae7a379357589c5c0af7bcfc5aa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_lf_skip-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f46e7018d54ce2bf322f5226711e5e13ba787b7438695298ff9fe2af9eef6fa7
MD5 65a946f72c2f581dfc21ebb12dedb5e5
BLAKE2b-256 d9c432c07a0e405010ab43080ac990b9605d85bc31d0409d80d4eb3afccd9ae3

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