pytest plugin helps to reproduce failures for particular xdist node
Project description
pytest-xdist-tracker
This plugin allows us to keep artifact after running test with xdist (parallel)
Installation
pip install pytest-xdist-tracker
Using
For example, we use pytest-xdist for running tests in parallel and
we have a test that fails from time to time.
That definitely a flaky/coupled test that fails because
before were executed tests that keep after self some unexpected state for our failed test
pytest-xdist-tracker can help with that case
It stores artifact after execution like this one xdist_stats_worker_gw1.txt
where gw1 is number of xdist node
Then we can reproduce tests which were run in particular node where failure happened
pytest --from-xdist-stats=xdist_stats_worker_gw1.txt
It will collect tests as usual but will filter by our tests
note: this plugin works only with pytest-xdist
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-xdist-tracker-0.0.2.tar.gz.
File metadata
- Download URL: pytest-xdist-tracker-0.0.2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c4c6a527a18b8a30cbce2536226d96f99f0507a619d6048ea3e813ec69f5d5c
|
|
| MD5 |
585811315bfc59cf9454f80f4bb38eed
|
|
| BLAKE2b-256 |
12f52387dcc1cea4ec6dd1d35b8b82f966b1680ffbe7ccd15732249f7264af5a
|
File details
Details for the file pytest_xdist_tracker-0.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_xdist_tracker-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9416db25d19f63087a719e0facb43acbc2edf681d8e24bf4ac2c5dc83b298a1
|
|
| MD5 |
3fecee699201b1ae9e7049c72c4b322c
|
|
| BLAKE2b-256 |
a05169df118996433fa5d05f8fdb2b060f0fd87294f90bb763d5fc515333d824
|