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

Pytest plugin which splits the test suite to equally sized "sub suites" based on test execution time.

Results 43 pytest-split issues
Sort by recently updated
recently updated
newest added

I have two settings for CI a) run all the tests on GPU b) run a subset of the tests on CPU the subset is because many tests are decorated...

I'm interested in file based splits in order to keep modules together For example: ``` a.py b.py sub_module/c.py sub_module/d.py another_sub_module/e.py ``` A split might be like `a.py and b.py`, `sub_module`,...

Considering a test case with `setup_class`: ```py import time class TestA: @classmethod def setup_class(cls): time.sleep(6) def test1(self): time.sleep(2) def test2(self): time.sleep(3) ``` Run: ```sh pytest test_a.py --store-durations ``` The result...