{"library":"pytest-xdist-worker-stats","title":"Pytest Xdist Worker Stats","description":"pytest-xdist-worker-stats is a pytest plugin that provides detailed statistics about individual worker performance after a pytest-xdist run, including test counts and execution times. The current version is 0.4.0, and it maintains an active, moderate release cadence.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install pytest-xdist-worker-stats"],"cli":null},"imports":["No direct import needed; pytest discovers plugins automatically."],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import time\nimport pytest\n\n@pytest.mark.parametrize(\"i\", range(5))\ndef test_slow_task_a(i):\n    time.sleep(0.1)\n\n@pytest.mark.parametrize(\"i\", range(3))\ndef test_slow_task_b(i):\n    time.sleep(0.2)\n\n# To run: save this as test_example.py, then run from your terminal:\n# pip install pytest pytest-xdist pytest-xdist-worker-stats\n# pytest -n 2 --xdist-worker-stats test_example.py","lang":"python","description":"This quickstart demonstrates how to use `pytest-xdist-worker-stats` by creating a simple test file with parameterized tests that will be run in parallel by `pytest-xdist`. The `--xdist-worker-stats` flag will activate the plugin and display the worker statistics after the test run.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}