Skip to main content

Questions tagged [jacoco]

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

jacoco
0 votes
0 answers
9 views

getting the jacoco.exec file as 0kb , nothing capture in the exec file . Nothing capture in jacoco.exec

I started my application with jacocoagent like this start.sh file :(start.sh & jacocoagent & application.jar present in same location) export JAVA_OPTS="-javaagent:jacocoagent.jar=...
Rakesh Hazari's user avatar
0 votes
0 answers
18 views

Error : Could not get unknown property 'JacocoMerge' for root project of type org.gradle.api.project || in Gradle 8.5 with Java 21

Facing issue for JacocoMerge Task Below are version details: Java - 21 Gradle - 8.5 Jacoco - 0.8.11 Below are gradle code `task jacocoMerge(type:JacocoMerge){ destinationFile = file(filePath) ...
Lina's user avatar
  • 305
1 vote
0 answers
22 views

Jacoco code coverage report with karate testcases and maven project , original code and karate testcases present in different project

I want to create jacoco code coverage report of my maven project. My Main code present in different maven project and testcases are present in different maven project. I want code coverage report of ...
Rakesh Hazari's user avatar
-2 votes
1 answer
37 views

SonarQube - Maven Jacoco Error - Cannot import coverage information for file, java.lang.IllegalStateException: Line 70 is out of range in the file

I am getting below error in SonarQube(version -SonarScanner CLI 6.0.0.4432 SonarQube Server version 10.6.0.92116) build. 15:06:52.321 INFO Importing 10 report(s). Turn your logs in debug mode in ...
Nidhi257's user avatar
  • 919
0 votes
1 answer
21 views

How to exclude certain classes form code coverage calculations using jacoco?

I am trying to instrument code coverage for my Quarkus application. When running mvn clean install everything works fine and code coverage is shown as expected and the classes are excluded. But when ...
Sergio Agüero's user avatar
-1 votes
1 answer
50 views

Jacoco @Generated annotation is not excluding class with methods having anonymous class

I am using following this article to exclude any custom class where I dont want to write test cases https://www.baeldung.com/jacoco-report-exclude annotation to exclude class from jacoco coverage. I ...
harpal18's user avatar
  • 135
0 votes
0 answers
16 views

Jacoco coverage 0% after updating gradke 7.4 to 0.8.7 in Android App using EC file

We were using 7.4 gradle version with jacoco version with 0.8.5, After upgradeging from 8.7 we are getting coverage is 0% in all class file. while running JacocoReportTask then we are getting ...
Diksha Gupta's user avatar
0 votes
1 answer
28 views

JaCoCo and Coveralls Integration in Android Project (Github action)- Coverage Report Not Appearing on Coveralls.io

I am trying to integrate the code coverage tool Coveralls.io in my Android project. I am using JaCoCo for generating the coverage reports and the Coveralls Gradle plugin to upload them. My GitHub ...
Jitu's user avatar
  • 1,072
0 votes
0 answers
22 views

How to unit test @Recover for jacoco code coverage using junit5?

I am using @Retryable and @Recover, so when exception occurs during retry, it can be handled in different way. I use @EnableRetry in my configuration class where it instantiates my service bean. In my ...
Jonathan Hagen's user avatar
1 vote
0 answers
35 views

get only test coverage in sonarqube and not run the static code analysis of all the files

I am trying to get only test coverage report generated by jacoco plugin in multi-module gradle project and dont want to run static code analysis(takes lotta time). I have tried till now: sonar....
user25527228's user avatar
0 votes
1 answer
133 views

Gradle Jacoco failing with java 17

I am using gradle and Jacoco for my spring boot project. Unfortunately, my tests were not running and getting below exception. My gradle version https\://services.gradle.org/distributions/gradle-8.8-...
rakeeee's user avatar
  • 1,063
0 votes
1 answer
58 views

How to set JaCoCo report name with Quarkus?

Currently, when running tests in Quarkus (./mvnw test) the JacoCo report is generated. However, when opening target/jacoco-report/index.html, the h1 tag is filled with the first test class that is run ...
gian1200's user avatar
  • 3,794
0 votes
1 answer
73 views

STS 4.22.1 - EclEmma Code Coverage not showing

JaCoCo / EclEmma is not showing when I click on a project. Previous STS4 version: Version: 4.21.1.RELEASE My current STS4 version: Version: 4.22.1.RELEASE Build Id: 202405011620 Revision: ...
Smit Joshi's user avatar
0 votes
1 answer
55 views

Cannot find the option to specify alternative coverage runner under code coverage in Inteliej

im trying to setup jacoco on intelliej. I have went to Run > Edit Configurations but their is no option to specify alternative coverage runner under code coverage. enter image description here I ...
user475's user avatar
0 votes
0 answers
27 views

How do you calculate total code coverage for Android code using Jacoco?

How can I calculate the total unit test coverage using JaCoCo for my entire code base, not just the classes with unit tests written? I tried using JaCoCo, but it's only showing unit test coverage for ...
Navid Jl's user avatar

15 30 50 per page
1
2 3 4 5
130