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

Store durations with option keeps the timing of already run testcases

Open haicheviet opened this issue 1 year ago • 0 comments

Description

Thanks for the great lib, but I would like to have the option to keep the timing of the tests that have already been run. This would allow me to avoid re-update tests that I know will not change much, and it would also make it easier to track the performance of my test suite over time in git.

Solution Proposed

I think this could be implemented by update option store_durations into category: [keep, replace], and it would be default to replace.

I believe this would be a useful feature for many users of pytest-split and if you think the proposed solution is good to go. I happy to contribute and create a PR for this feature.

haicheviet avatar Sep 12 '23 07:09 haicheviet