A pytest plugin to list worker statistics after a xdist run.
Project description
pytest-xdist-worker-stats
A pytest plugin to list worker statistics after a xdist run.
Installation
$ pip install pytest-xdist-worker-stats
Usage
All that is needed is to have xdist installed & enabled, and to run tests in multiple workers.
Example output
platform linux -- Python 3.10.11, pytest-7.3.2, pluggy-1.0.0
plugins: xdist-3.3.1, xdist-worker-stats-0.1.0
12 workers [318 items]
............................................................................................................... [ 34%]
............................................................................................................... [ 69%]
................................................................................................ [100%]
================================================= Worker statistics ==================================================
worker gw0 : 11 tests 5.75s runtime
worker gw1 : 10 tests 6.17s runtime
worker gw2 : 8 tests 5.80s runtime
worker gw3 : 21 tests 5.70s runtime
worker gw4 : 16 tests 5.73s runtime
worker gw5 : 9 tests 5.76s runtime
worker gw6 : 12 tests 19.21s runtime
worker gw7 : 48 tests 5.58s runtime
worker gw8 : 17 tests 5.70s runtime
worker gw9 : 78 tests 5.50s runtime
worker gw10 : 41 tests 5.60s runtime
worker gw11 : 47 tests 5.59s runtime
================================================ 318 passed in 26.66s ================================================
Development
Poetry (dependencies) and pre-commit (coding standards) are required for development.
$ poetry install
$ pre-commit install
Thanks
Many thanks to Denys Korytkin for the article How to get data from pytest-xdist nodes.
Changelog
0.1.1 (Jun 15, 2023)
- First Release
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_worker_stats-0.1.3.tar.gz.
File metadata
- Download URL: pytest_xdist_worker_stats-0.1.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee6bbf8f722683b332a9472c0541a74083581efed23e4744df496b9a1efa9d77
|
|
| MD5 |
cf8f3e67b311f1f4b66bdcbc467184c2
|
|
| BLAKE2b-256 |
2002e9ab745733579121a372125d947e8c364f889c0040b67f8ba49febdf1ea6
|
File details
Details for the file pytest_xdist_worker_stats-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pytest_xdist_worker_stats-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea6b07cc6c34b6e97ca98a774a602869d87743b82eaf9b483b14f463804cd77b
|
|
| MD5 |
2c3ce07deeb0bb78745d10479c78fd02
|
|
| BLAKE2b-256 |
44d891a6e5e5bd6c2ddb40389dec0096d9d638dfdb82fd67c0646d059d6b35a4
|