Skip to content

Commit

Permalink
Enable JaCoCo by default
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Nov 18, 2024
1 parent 6082336 commit a9b0a12
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cross-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
with:
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
arguments: |
-Ptesting.enableJaCoCo=false \
-PjavaToolchain.version=${{ matrix.jdk.version }} \
-Dscan.tag.JDK_${{ matrix.jdk.version }} \
build \
Expand Down Expand Up @@ -101,6 +102,7 @@ jobs:
with:
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
arguments: |
-Ptesting.enableJaCoCo=false \
-PjavaToolchain.version=${{ matrix.jdk }} \
-PjavaToolchain.implementation=j9 \
-Dscan.tag.JDK_${{ matrix.jdk }} \
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
with:
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
arguments: |
-Ptesting.enableJaCoCo \
:platform-tooling-support-tests:test \
build \
jacocoRootReport \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ builds of the next OpenJDK.
Code coverage using [JaCoCo] for the latest build is available on [Codecov].

A code coverage report can also be generated locally via the [Gradle Wrapper] by
executing `./gradlew -Ptesting.enableJaCoCo clean jacocoRootReport`. The results will be available
executing `./gradlew clean jacocoRootReport`. The results will be available
in `build/reports/jacoco/jacocoRootReport/html/index.html`.

## Develocity
Expand Down
2 changes: 1 addition & 1 deletion gradle/plugins/build-parameters/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ buildParameters {
description = "Testing related parameters"
bool("enableJaCoCo") {
description = "Enables JaCoCo test coverage reporting"
defaultValue = false
defaultValue = true
}
bool("enableJFR") {
description = "Enables Java Flight Recorder functionality"
Expand Down

0 comments on commit a9b0a12

Please sign in to comment.