Description
Is your feature request related to a problem? Please describe.
When using the combine feature, a combined coverage file is created and💥 the original files are deleted
Describe the solution you'd like
I would like the original files to be kept untouched (do not delete them)
Or have a command line argument to tell combine to keep the original coverage files
Describe alternatives you've considered
-
alternative # 1 is to create backup copy of the original coverage files somewhere else (temp folder) combine them there and bring back the combined file.
-
Alternative # 2 is to create a backup copy somewhere else of the original coverage files, combine, copy the originals back after
-
Alternative # 3 Run all test twice to avoid the need to combine coverage files
-
Alternative # 4 wait till the coverage files are no more needed before doing combine
Note: I don't like any of the above alternatives hack
Additional context
Here is my use case:
1- I run different kind of test (unit tests, integration tests, smoke tests, ...)
2- I then obtain a coverage file for each of them (unittest.coverage, integrationtest.coverage, smoketest.coverage)
3- I combine them into a alltest.coverage
4- I successfully obtain the alltest.coverage but 💥Oups!; the original unittest.coverage, integrationtest.coverage, smoketest.coverage, etc are gone (they have been deleted by the combine)
5- 💥 I want to use the coverage files of each test types for further processing but their coverage files are gone.