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

A new distribution mode is needed to group test cases, execute Group 1 first, and then Group 2

Open zhupengfarmer opened this issue 1 year ago • 1 comments

I have many test cases that need to wait for all other cases to be executed before executing. However, the current grouping method does not support it

zhupengfarmer avatar Jan 30 '24 14:01 zhupengfarmer

Hi, we are also hoping for this same feature, are there any plans to add something like this? For more context: we have many test cases that consume different amounts of RAM/CPU. We'd like to separate these cases into groups based on pytest marks, then have high resource consuming tests run in an isolated group w/some number of workers (for example, 4 workers), then run tests with lower resource consumption in a separate group with 8 workers.

ciaconet avatar Aug 20 '24 18:08 ciaconet