Questions tagged [jacoco]

JaCoCo a coverage analysis tool. It runs as a JVM Agent and therefore does not require offline instrumentation.

JaCoCo is an EPL-licensed, open-source code coverage analysis tool. It runs as a JVM Agent and therefore does not require offline instrumentation.

Compared to Cobertura, it has lower runtime overhead but less precision. It is unable to record hit counts, it only records red/green, however it can show coverage on class, method, line, complexity, branch and instruction level. It also has the ability to merge the results of multiple analyses when generating a report.

QuickLinks:

Related Tags:

JaCoCo is the successor of the EclEmma Eclipse plugin for the Emma coverage tool. If a search through -tagged questions doesn't help, try searching for the tag.

The tag is used for general topics related to code coverage measurement.

1633 questions
0
votes
1 answer

Using Sonar in Ant only for code coverage with JaCoCo (no static analysis)

I created a job in Jenkins that executes sonnar-runner against all the projects in my repository. This job is independent from code coverage and runs a few times a day. On the other hand, I want code coverage to happen upon a build (using JaCoCo)…
MisterStrickland
  • 858
  • 13
  • 30
0
votes
1 answer

Why is Gradle / / Sonar Jacoco looking for dir and also project?

Background: We have two subprojects each with many sub-sub-projects. The root project is an empty parent. We have one project that is strictly for the flyway plugin. Often times names do not match directories. For perspective, settings.gradle is…
user447607
  • 4,109
  • 7
  • 29
  • 53
0
votes
1 answer

Project exclude with gradle / sonar / Jacoco

So we have a build with 90+ sub-projects where it's often the case that the directory doesn't perfectly match the project name. In some cases we have empty project-less parent directories and in others the name just doesn't match the directory…
user447607
  • 4,109
  • 7
  • 29
  • 53
0
votes
0 answers

While running ant task for sonar5.1 using jacoco plugin

I am new with this sonar code coberage. I am trying to genrate code coverage for android unit test. I am getting below mentioned error while exucuting ant sonar to genrate code coverage. Sonar configuration is: Sonar5.1 with…
Mubarak
  • 1,299
  • 13
  • 21
0
votes
2 answers

Jacoco with ant not showing coverage

I am trying to run Jacaco with ant. When my tests gets executed the coverage is only shown for my Test classes but not for actual code. My Ant code