Skip to main content

pytest plugin helps to reproduce failures for particular xdist node

Project description


This plugin allows us to keep artifact after running test with xdist (parallel)


pip install pytest-xdist-tracker


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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-xdist-tracker-0.0.2.tar.gz (9.3 kB view hashes)

Uploaded source

Built Distribution

pytest_xdist_tracker-0.0.2-py2.py3-none-any.whl (6.3 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page