istanbul
istanbul copied to clipboard
Add support for Jacoco reports
We have a build pipeline setup in jenkins that consists of java and javascript code. We use jacoco to produce code coverage reports for our java code base. We also have javascript projects where we're using Karma to run our jasmine tests and produce code coverage reports. Instanbul currently supports output format cobertura which has a jenkins plugin. We currently must display two separate code coverage reports (one for java (jacoco) the other for javascript (cobertura)). It would be nice if we could have code coverage reports for our java code and javascript code in the same format so that we could merge them all into one report. Seeing that jacoco is the more popular code coverage tool for java these days I see many others having this same need.
Jacoco has published a DTD of their format.
@blindenvy Do you know how jacoco calculates complexity?
You can read all about it in their documentation: http://www.eclemma.org/jacoco/trunk/doc/counters.html
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
I agree with @blindenvy We have even more complex Jenkins eco system having multiple technologies. Having multiple plugins for coverage purpose doesn't help in maintenance/reporting areas. It will be great to see jacoco format report. :)
besides jenkins, another use-case for jacoco-reports would be, that they can be consumed by webstorm. Or at least the official documentation implies that it does
[...] select the necessary .ic (IntelliJ IDEA runner) or .exec (JaCoCo runner) file [...]
https://www.jetbrains.com/help/idea/switching-between-code-coverage-suites.html#add-remove-coverage-suite