Set tests order while running tests in parallel

73 views Asked by At

i have 5 test classes, and one of them (the 5th one) i want to run the last one.

Each test processes data. The last test cannot run while the data is being processed by any other test.

I tried to use the following: pytest-order, pytest-ordering and @pytest.mark.xdist_group(name="group1")

i tried to define a global variable (in conftest.py) and use it with a fixture as a flag when a class is done with tests.

In other words, i want to set the order in which the workers are executed.

0

There are 0 answers