jacoco Questions

4

Solved

We use gradle 3.3 and jacoco tool verson 0.7.6.201602180812. We have a gradle multi-project like this: parent prod1 prod2 prod3 int-test We use unit-tests testing the project sources and ja...
Rust asked 2/1, 2017 at 15:58

5

I use jacoco for coverage report. When I look at the jacoco report, coverage seems to be good. But in Sonarqube, the coverage is low because it says that @Dataannotation from lombok is not cover by...
Pyrites asked 8/8, 2017 at 13:0

2

Android: Jacoco code coverage is not generating after gradle upgrade to 7.0.x & jdk 11 with testCoverageEnabled true. It is working perfect with gradle 4.2.x & jdk 8. I tried removing testC...

9

So this question might not be really specific, but i'm asking it anyway. I'm trying to use JaCoCo with IntelliJ to gather coverage reports on unit tests. However, i don't have any experience whats...
Bookmobile asked 19/4, 2017 at 16:3

2

Solved

I want to run my tests in Android app and create coverage reports, so I added Jacoco configuration into my build.gradle file, but it doesn't work. apply plugin: 'com.android.application' android ...
Deposition asked 9/10, 2015 at 11:49

3

Solved

Changing enabled to required throws an error in gradle 7.5 > Configure project : The Report.enabled property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the re...
Donnettedonni asked 30/8, 2022 at 17:59

7

Solved

I wanted to generate code coverage reports on my JUnit tests in my android project so I added the JaCoCo gradle plugin. This is my project level build.gradle file: apply plugin: 'jacoco' buildscr...
Acroterion asked 1/3, 2016 at 22:42

3

Solved

I have an issue in which test task is failing intermittently (I doubt it is, because Jacoco is triggering [generating reports] during test). Is there a way to disable running of jacoco during test?...
Ard asked 28/2, 2017 at 6:39

4

Solved

Is there any option to exclude Dagger2 classes from test coverage report in Android Studio

1

I am trying to add an aggregated coverage report for the unit tests for a multi-module project. The coverage report is generated as expected for individual modules. But the aggregated report genera...
Grandmamma asked 2/2, 2021 at 1:29

4

Based on this documentation - https://developer.android.com/studio/test/command-line.html#AMOptionsSyntax it is possible to get code coverage results back from Firebase lab. Some folks in #test-lab...
Powerboat asked 21/11, 2016 at 17:42

8

Solved

I am trying to setup jacoco for my project's code coverage My project is based on Java 1.8 Here is how things look in my project's pom.xml <plugin> <groupId>org.jacoco</groupI...
Overword asked 20/8, 2014 at 1:2

3

I have captured the coverage details in a jacoco.exec file. It is 6Mb in size. I need to generate a coverage report using maven . I tried the below <dependencies> <dependency> <g...
Laurenelaurens asked 3/4, 2014 at 11:37

6

As discussed in Open JaCoCo report in Intellij IDEA, when I gather code coverage statistics using Jacoco (rather than native IntelliJ tracing) 0.0% (i.e. "no" coverage) is always shown in the cover...
Domesticity asked 24/11, 2015 at 15:19

3

Solved

When I write <sonar.jacoco.excludes>*.model.*</sonar.jacoco.excludes> The package is not excluded from instrumentation / reporting and coverage shows as 0% Why is this ? Sonar v...
Cannabin asked 10/7, 2013 at 11:1

10

Solved

I just downloaded the latest version, SonarQube 4.3, then try build a java-8 project with: mvn clean install mvn sonar:sonar That gives me the Exception below. Googling, I got the impression...
Strengthen asked 28/5, 2014 at 23:24

4

I recently moved to another computer and needed to reset all my environment. So, this tests was working before. But I didnt remember which version of Java/JDK I was using before. Well, the problem ...
Wrote asked 10/11, 2021 at 1:17

5

Solved

I am trying to implement sonar with gradle for code-coverage measure for my project. we are using gradle-4.0.1 and sonarqube-6.4 . when I run gradle sonarqube from command line I get this error- ...
Agist asked 16/7, 2017 at 7:39

4

I tried to upgrade my project from JDK 11 to JDK 14, but running the tests failed after setting the java version to 14. As I am using jacoco in combination with JMockit I configured my build as fol...
Auden asked 12/9, 2020 at 13:52

1

I have an Android app with 4 variants, and I have a Bitrise instance that runs this command: ./gradlew "testDevADebugUnitTestCoverage" "testDevBDebugUnitTest" "testDevCDebu...

3

Solved

I don't understand, I try to generate code coverage report with JaCoCo and Maven, the simplest. I have the following plugin in my pom.xml : <plugin> <groupId>org.jacoco</groupId&g...
Omnipresent asked 16/4, 2019 at 21:21

26

I'm using Maven 3.0.3, JUnit 4.8.1, and Jacoco 0.6.3.201306030806, and I am trying to create test coverage reports. I have a project with unit tests only, but I can't get reports to run, I'm repea...
Sherrill asked 7/8, 2013 at 15:22

3

Solved

Java 8 and Gradle 4.6 here. I'm trying to configure my Gradle build to use the Jacoco Plugin but am having some difficulty. I've already got it working with Checkstyle and Findbugs, such that runni...
Ventura asked 10/7, 2018 at 14:9

3

I've integrated the jacoco-maven-plugin in my project, based on this excellent guide: http://www.petrikainulainen.net/programming/maven/creating-code-coverage-reports-for-unit-and-integration-tests...
Chemise asked 10/1, 2014 at 15:58

14

Solved

I've searched up and down the internet for this one. There's lots of half-answers out there, to do with Maven properties such as ${sonar.jacoco.reportPath}, or org.jacoco:jacoco-maven-plugin:prepar...
Malan asked 23/10, 2012 at 13:11

© 2022 - 2025 — McMap. All rights reserved.