Merging Reports after the run #827
Comments
You could also use the latest ReportGenerator release: It supports Cobertura as an output format. ReportGenerator merges the coverage reports and generates a Cobertura file, which you can use for Jenkins. OpenCover also has a |
OpenCover also has a -mergeoutput parameter. i tried this option to merge coverage report but it doesn't work. please guide me if there is any solution available to merge reports. |
@corentinaltepe yes but it would need to be supported with plenty of tests |
Hi, my solution has 80, UT assemblies, 160 Integration test assemblies. |
@VishalKulkarni0787 |
I always use report generator I see no need for this feature |
My Framework
My Environment
I have already...
My issue is related to (check only those which apply):
Problem
I have a need to merge OpenCover's output reports AFTER running tests coverage analysis separately. The reason behind this is I have a list of unit tests and a list of integration tests. I run coverage for each separately, generate reports, then I combine both reports for a global coverage. I use ReportGenerator to generate the reports, and it merges OpenCover reports well. However, Jenkins doesn't have an OpenCover plugin to nicely integrate the coverage reports, so I publish the ReportGenerator HTML reports into Jenkins.
I also use an OpenCover-to-Cobertura converter, and then use Jenkins' Cobertura plugin to pulish the results in a nice format in Jenkins, but that works for only 1 report (either Units Tests list or Integration Tests).
I would like to merge the Unit Tests and Integration Tests results of OpenCover, to then convert it to Cobertura for an easy publishing to Jenkins. I have looked at merging Cobertura reports as an alternative but without luck.
Implementation
Looking at OpenCover XML report structure, it should be quite easy to do :
1 . Copy/Paste the Modules lists from each report to the merged report.
2. Compute the Summary of each report, and this is where there is a bit of business logic to implement and will need maintenance later on. From my understanding :
Question
Do you think a merging feature would have its place in OpenCover ? I would see it as a command line verb action such as : opencover merge -source:unit.tests.xml,integration.tests.xml -output:global.xml
I personnally believe such feature should be part of OpenCover's core, and not as a peripheral tool, because it's code should evolve with the core's business logic (if, for example, the sequence and brancheCoverage computation rules evolve or new ones are added).
Would you accept such pull request ?
The text was updated successfully, but these errors were encountered: