Combine coberture code coverage reports in three separate projects

I have three projects that are stored in three separate repositories. Each of them is a separate mvn project. I wonder if there is a way to combine the three reports into one?

I looked at the cumulative function of cobertura. But it looks like it can only process project submodules.

Anyone have any suggestions?

+4
source share
2 answers

The purpose of the cobalt plugin is Maven: cobertura supports an aggregate parameter that will work for all projects in the reactor, I suppose.

But you seem to assume that projects may not be in the same structure / reactor, and I don't know how to do this with maven per se. However, you can easily do this with a small ant script that can be integrated into your maven structure.

The Cobertura ant library has a merge task that can combine multiple .ser files (generated at runtime of your tool code). This will create a combined .ser file for which you can generate an xml or html report from.

Let me know if you need more pointers.

+1
source

In another question, the responder gave a link to a written python script that did what you ask, I moved this "xml combiner" to the text that is located here

+1
source

Source: https://habr.com/ru/post/1205108/


All Articles