S
S
Sergey2020-05-25 16:48:15
Python
Sergey, 2020-05-25 16:48:15

How to run specific tests on a specific worker?

Good day!
There are 10 tests running in pytest in parallel on 3 threads using xdist (gw0, gw1, gw2). 1 test - 1 thread.

Is it possible to make all tests work "as usual" (which worker is released, on which the test runs), and certain tests are tied to a specific worker?

For example, I want test_2 and test_8 to be executed only by the gw1 worker.
Can this be done at all?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question