Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quarkus 1.13.0 with Jacoco include test classes in report #16323

Closed
hyper-ricardo opened this issue Apr 7, 2021 · 2 comments · Fixed by #16339
Closed

Quarkus 1.13.0 with Jacoco include test classes in report #16323

hyper-ricardo opened this issue Apr 7, 2021 · 2 comments · Fixed by #16339
Labels
area/kotlin kind/bug Something isn't working
Milestone

Comments

@hyper-ricardo
Copy link

Describe the bug

With a Quarkus 1.13.0 Gradlew project and the quarkus-jacoco extension, classes from src/test/resources are included in the Jacoco report.
Event with this property in the application.yml

quarkus:
  jacoco:
    excludes:
      - "*Test"

Expected behavior

No test classes from src/test/java should be included in the Jacoco raport

Actual behavior

Test classes from src/test/java are included in the Jacoco report

To Reproduce

https://github.com/hyper-ricardo/quarkus-jacoco-test

Steps to reproduce the behavior:

  1. ./gradlew clean build
  2. open build/jacoco-report/index.html
  3. see that GreetingResourceTest is present

image

Environment (please complete the following information):

Output of uname -a or ver

Darwin hyper 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

Output of java -version

openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)

GraalVM version (if different from Java)

Quarkus version or git rev

1.13.0

Build tool (ie. output of mvnw --version or gradlew --version)


Gradle 6.8.3

Build time: 2021-02-22 16:13:28 UTC
Revision: 9e26b4a9ebb910eaa1b8da8ff8575e514bc61c78

Kotlin: 1.4.20
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (AdoptOpenJDK 11.0.10+9)
OS: Mac OS X 10.16 x86_64

@hyper-ricardo hyper-ricardo added the kind/bug Something isn't working label Apr 7, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Apr 7, 2021

/cc @evanchooly

@geoand
Copy link
Contributor

geoand commented Apr 7, 2021

cc @stuartwdouglas

stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Apr 7, 2021
@quarkus-bot quarkus-bot bot added this to the 1.14 - main milestone Apr 8, 2021
@gsmet gsmet modified the milestones: 2.0 - main, 1.13.2.Final Apr 10, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Apr 10, 2021
Fixes quarkusio#16323

(cherry picked from commit beb0db6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kotlin kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants