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

In short, this: `pytest --splits 3 --group 1` results in this ``` File "/home/user/.venv/lib/python3.8/site-packages/pytest_split/plugin.py", line 114, in _calculate_suite_start_and_end_idx avg_duration_per_test = sum(stored_durations.values()) / len(stored_durations) ZeroDivisionError: division by zero ``` if there's...

bug

Since most CI machines has between one and a half to two CPUs it is a waste not to combine both approaches when appropriate. Can we use both of these...

Since we already have the group number and number of groups in our environment variables on some CI environments we can simply fetch them. I'm not sure this is the...

Remove these https://github.com/jerry-git/pytest-split/blob/37005b54055d808782f01e019c8e3ca670726c5e/src/pytest_split/plugin.py#L89-L96 once this is solved https://github.com/spulec/freezegun/issues/286

The following packages are outdated | Package | Used | Update | |-----------------------|---------|----------| | attrs | 21.4.0 | 22.1.0 | | autoflake | 1.4 | 1.6.1 | | black |...

Several tests in in my code use fixtures, and from looking at the durations file generated by pytest-split it seems like the time for creating those fixtures gets assigned to...

Hi i have a case where i generate duration file in seperate workflow and i also generate duration file on my pr builds which i consume for seperate usecase i...

in long running test suites (especially with xdist), it's useful to run the slowest tests first so that you end up with better load. the following code seems to do...

Changes from https://github.com/woltapp/wolt-python-package-cookiecutter | Date | Change | Hash | |------------|----------------------------------------------------------------------------|---------| | 2024-03-14 | Merge pull request #47 from woltapp/update-poetry-way-of-defining-dev-deps | 79dbc2c | | 2024-03-14 | Use the new poetry...

The following packages are outdated | Package | Used | Update | |----------------------------|------------|------------| | black | 23.3.0 | 24.2.0 | | certifi | 2023.11.17 | 2024.2.2 | | cfgv |...