Combine results from different executables

Jan 17 at 4:15 PM
Hi there,

Say I had a project which shipped with a number of samples - is it possible to combine the coverage results from all the different samples into one uber coverage list?

At present, it seems you can combine the coverage results into a single webpage, but they are still separated per executable that you run.

Regards,
Tom
Coordinator
Jan 22 at 11:48 AM
Hello,

Now you can combine coverage with --input_coverage but the HTML output will still gather coverage by module.

If you want to have the coverage by file in one list, you can:
  • export to XML with --export_type
  • find all tags <class name="XX" filename="XX" line-rate="XXX"/>.
  • Extract name and line-rate attributes.
With a decent XML library, this should require only a few lines of code.

I hope this will help,

OpenCppCoverage
Jan 25 at 9:00 PM
Thanks for your reply. That does sound trivial but I'm wondering if this is a feature that OpenCppCoverage could support out-of-the-box?

Regards,
Tom
Coordinator
Feb 1 at 10:32 PM
Hello,

I think having a single list out of the box makes sense but other users suggest aggregating coverage by class or by function which also make sense.
For now, I have no plan to add a new kind of HTML export.
Instead, I will try to provide an export easy to parse so that every user can customize the output.

OpenCppCoverage
Coordinator
Oct 25 at 11:58 AM
Hello,

As CodePlex is going read-only, I have added Community feature requests

OpenCppCoverage
Marked as answer by OpenCppCoverage on 10/25/2017 at 3:58 AM