pytest-dev / pytest-dev/pytest-xdist
Question: How to distribute tests with hosts
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 287
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 2
Description
I'm trying to run distributed tests with hosts
pytest -d --tx socket=tester1:8888 --tx socket=tester2:8888 --tx socket=tester3:8888 --rsyncdir server server
So I'm trying to distribute my tests across 3 hosts, it's working but it looks like it's all the tests running on all the hosts, how do I distribute the tests between the hosts? so each host will do his own job?
I tried different flags on dist but no luck
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported pytest-xdist command with the three socket hosts and review the available distribution options for the dist mode. Confirm whether the expected result is that each test runs once across the hosts, then document the appropriate configuration or explain the observed behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100