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

ability to load different files and store seperate duration files

Open indiVar0508 opened this issue 1 year ago • 0 comments

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 have .test_durations file which i want pytest-split to use to make splits of groups

currently i am using --store-durations --durations-path=.my-custom-path-for-diff-usecase this makes pytest-split to look for this .my-custom-path-for-diff-usecase which is not there.

is there a way to tell pytest-split to inform to read from one file and write to other one way could be --store-durations-path=... which is only to be written and not read?

i see we load config at this point, https://github.com/jerry-git/pytest-split/blob/master/src/pytest_split/plugin.py#L128, is it possible to add an optional parameter load_cache_duration, which if provided should load that file and not store path?

Thanks

indiVar0508 avatar Mar 21 '24 10:03 indiVar0508