Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

combine python coverage files?

Tags:

I'm wondering if it's possible to combine coverage.xml files into 1 file to see global report in HTML output.

I've got my unit/functional tests running as 1 command and integration tests as the second command. That means my coverage for unit/functional tests are overridden by unit tests.

That would be great if I had some solution for that problem, mainly by combining those files into 1 file.

like image 448
tunarob Avatar asked Oct 06 '14 10:10

tunarob


People also ask

What is coverage combine?

Combining data files: coverage combine The combine command reads a number of separate data files, matches the data by source file name, and writes a combined data file with all of the data.


1 Answers

I found a different solution. I used combine feature (read here) So I run my coverage like: coverage run -p and then I do coverage combine.

That's all. It generates 1 combined report.

like image 77
tunarob Avatar answered Sep 22 '22 11:09

tunarob