pytest-xdist icon indicating copy to clipboard operation
pytest-xdist copied to clipboard

Support controlling whether a specific Worker starts and stops testing

Open M2asXe opened this issue 1 year ago • 1 comments

Our business requires controlling Workers in multiple different environments for testing. These Worker-controlled environments may include mobile phones, Linux, MacOS, Windows, etc. We have mechanisms for automatically detecting and restarting these environments, but sometimes certain environments still cannot function properly. We hope to be able to exclude them and allocate test cases to Worker processes corresponding to normal environments.

Can we consider supporting?

M2asXe avatar Oct 14 '24 07:10 M2asXe

more context is needed for good suggestions

the common recommendation for testing against multiple environments is to have one ci job/matrix entry per environment an having the ci system manage the provisioning of the environment

that way xdist would not have to care as xdist would not need to distinguish environments

additionally commonly one needs to run most/all tests against each environment, having xdist split tests between different environments would imply not running them elsewhere

RonnyPfannschmidt avatar Oct 14 '24 08:10 RonnyPfannschmidt