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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_lf_skip-0.2.0.tar.gz.
File metadata
- Download URL: pytest_lf_skip-0.2.0.tar.gz
- Upload date:
- Size: 74.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d85201b1cfe19bca840f4ee105e6b2be84cc39b2a939c007037ee3c1fa2ad3d5
|
|
| MD5 |
271bdb6104a790a25bd3ad659abcfaec
|
|
| BLAKE2b-256 |
30402685877b03e11f5e8db44a4421e7792af64125d2b0e4a0ab3d36714f02b2
|
File details
Details for the file pytest_lf_skip-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pytest_lf_skip-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb3139b98d0842097227842a8e96d03bddd87ca2680762aa7c54a7c109c23516
|
|
| MD5 |
fafad71af3698ad493f269b639a2d156
|
|
| BLAKE2b-256 |
31a7ccfbf0b713e63d08d182926d05efb23be666b76a708e4b08d272e6c55066
|