1,922 questions
0
votes
3
answers
118
views
JaCoCo indicates missed branch on two-part RegEx matches/find which is proved to be covered between multiple unit tests
I have the following Email Validation method which checks an Email Address based on 2 conditions: (1) The main format must be valid, (2) UUID cannot appear anywhere in the string. There are 2 Regexes ...
1
vote
0
answers
30
views
Trouble with jacoco on apache ant
I have configured my ant target as
<target name="test" depends="build">
<echo message="----- TEST STARTED -----" />
<mkdir dir="${test.classes....
4
votes
0
answers
125
views
sbt-jacoco counting synthetic methods
I saw one problem during project upgrade.
Before upgrade setup:
Java - 1.8
Scala - 2.12
sbt - 1.5.0
sbt-jacoco - 3.1.0
Overall test coverage in SonarQube: ~72%
After upgrade:
Java - 17
Scala - ...
Advice
0
votes
0
replies
39
views
Jacoco Configuration in java Project- Parent pom.xml configuration to include aggregated code coverage of all the modules
root pom.xml file
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.11</version>
<...
Advice
2
votes
4
replies
162
views
How to integrate JaCoCo into a spring boot OCI image to measure E2E testing code coverage?
I am packaging my Spring Boot App with the Spring Boot gradle plugin.
tasks.bootBuildImage {
builder.set("paketobuildpacks/builder-jammy-full:latest")
imageName.set(devImageName)
...
0
votes
0
answers
87
views
How to configure the Maven multi module build to get a CodeCoverage report in Azure with jacoco
I have a Maven Multi-Module Build. This works fine in the Azure Build Pipeline. Now I try to add CodeCoverage Report. For that I added this to my azure-pipelines.yml
- task: PublishCodeCoverageResults@...
0
votes
0
answers
57
views
Jacoco report execution error for Android kotlin based project
I am trying to generate Jacoco report for Android kotlin based project. I am using Android Emulator for running androidTests and generate ec file for coverage. But facing following issue all the time.
...
0
votes
1
answer
400
views
How to use `jacoco-report-aggregation` plugin in a Gradle multi module project?
The source code is here: https://github.com/yvasyliev/telegram-forwarder-bot/tree/feature/multimodule
I have a Gradle multi module project. The sub-modules are:
telegram-forwarder-bot (a console ...
1
vote
1
answer
105
views
How to isolate code coverage to specific interactions, excluding Spring Boot startup, in IntelliJ Ultimate?
I want to use IntelliJ IDEA Ultimate's "Run with Coverage" on a Spring Boot app to see which lines are executed during manual testing (e.g., hitting an endpoint with Postman).
My goal is to ...
0
votes
1
answer
105
views
Jacoco produces truncated xml and csv file
We are using the Jacoco maven plugin to generate the code coverage for some Quarkus project. It has worked fine so far, but recently we have had some occurrences of an intermittent issue on some of ...
0
votes
1
answer
64
views
Getting failsafe coverage for classes in nested modules
I have a repository with multiple projects. There is a project which has all the 'integration-tests' in it.
The 'integration-tests' project runs as follows:
Checks if a service is up.
If service is ...
0
votes
1
answer
42
views
how to add exclusions in gitlab pipeline using jacoco with ant for code coverage of java
How to add exclusions in gitlab pipeline using jacoco with ant for code coverage of java in gitlab? we are not using sonar.
Is there any direct command/property to add exclusions in gitlab?
just ...
-1
votes
1
answer
129
views
Jacoco not producting any output (Maven and Spring Boot)
We have a multi-module Java Maven project structured like this:
parent
├── child-1
├── child-2
└── common
There is no code in the parent, and the code and tests are mostly in common.
We want to ...
0
votes
0
answers
77
views
Can I exclude classes from Jacoco Report via maven pom configuration when I use quarkus-jacoco?
I know I can exclude classes from the Jacoco report via the application.properties with quarkus.jacoco.excludes but is there a way to exclude it with the configuration you can set via jacoco maven ...
0
votes
0
answers
47
views
How to send aggregated jacoco coverage report to coveralls?
I am generating an aggregated jacococ coverage report in a Maven module project like below
<build>
<plugins>
<plugin>
<groupId>org.jacoco<...