pytest-dev / pytest-dev/pytest-xdist
Configuring worker IDs
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 287
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 2
Description
As far as I can tell it is not possible to configure worker IDs. Currently I'm working on something where I need to use the worker ID and can use the assumption that they are named gw0, gw1, etc., but I would feel more comfortable if there was a way to define how the worker IDs get created to future proof against the possibility that pytest-xdist might change its naming conventions in the future.
Is this possible now? Or as an alternative would it make sense to have some kind of fixture that gives us the scheme used to generate worker IDs?
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 locating the code that creates worker IDs and the existing fixture API. Compare the current gw0/gw1 convention with the requested configurable scheme or fixture, and define done as a tested way to obtain or control worker IDs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100