Combine coverage files without deleting combined files 路 Issue #1108 路 nedbat/coveragepy (original) (raw)

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

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.