Currently my test suite runs the tests sequentially. I want to execute the tests in parallel by grouping the tests based on pytest.mark. For example consider I have grouped my test methods based on 3 markers -> A, B, C. A - 10 cases, B- 20 cases, C - 15 cases. I want to run 3 threads in parallel where each thread runs the test methods of each marker. How can this be achieved? Please advice.
↧