istanbul icon indicating copy to clipboard operation
istanbul copied to clipboard

Add support for Jacoco reports

Open jackson-chris opened this issue 7 years ago • 20 comments

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.

jackson-chris avatar Mar 19 '17 18:03 jackson-chris

@blindenvy Do you know how jacoco calculates complexity?

adrianfalleiro avatar Mar 31 '17 23:03 adrianfalleiro

You can read all about it in their documentation: http://www.eclemma.org/jacoco/trunk/doc/counters.html

jackson-chris avatar Apr 07 '17 19:04 jackson-chris

+1

sivasadhu avatar May 24 '17 11:05 sivasadhu

+1

elgohr avatar Jun 30 '17 04:06 elgohr

+1

cguckes avatar Aug 09 '17 07:08 cguckes

+1

slk9 avatar Aug 14 '17 18:08 slk9

+1

sschwenker avatar Aug 22 '17 15:08 sschwenker

+1

ginamako avatar Sep 26 '17 11:09 ginamako

+1

fathergoose avatar Oct 11 '17 21:10 fathergoose

+1

dejewi avatar Nov 15 '17 12:11 dejewi

+1

robcornelius avatar Jan 10 '18 09:01 robcornelius

+1

mrvicadai avatar Feb 06 '18 21:02 mrvicadai

+1

mingz avatar Feb 07 '18 05:02 mingz

+1

chintan-patel avatar Feb 22 '18 16:02 chintan-patel

+1

jfreitas2015 avatar Apr 04 '18 19:04 jfreitas2015

+1

justinhorton3 avatar Apr 26 '18 20:04 justinhorton3

+1

webben-de avatar Nov 20 '18 14:11 webben-de

+1

subhamsaha avatar Jan 22 '19 15:01 subhamsaha

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. :)

ketanonline avatar Mar 29 '19 11:03 ketanonline

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

bjuergens avatar Sep 20 '21 12:09 bjuergens