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
Hashes for pytest-xdist-tracker-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c4c6a527a18b8a30cbce2536226d96f99f0507a619d6048ea3e813ec69f5d5c |
|
MD5 | 585811315bfc59cf9454f80f4bb38eed |
|
BLAKE2b-256 | 12f52387dcc1cea4ec6dd1d35b8b82f966b1680ffbe7ccd15732249f7264af5a |
Hashes for pytest_xdist_tracker-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9416db25d19f63087a719e0facb43acbc2edf681d8e24bf4ac2c5dc83b298a1 |
|
MD5 | 3fecee699201b1ae9e7049c72c4b322c |
|
BLAKE2b-256 | a05169df118996433fa5d05f8fdb2b060f0fd87294f90bb763d5fc515333d824 |