pytest-dev / pytest-dev/pytest-xdist

Question: How to distribute tests with hosts

Open
#522 0 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.