diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a45e16ea50..23a893189b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,6 +63,7 @@ jobs: uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} + files: ./build/jacoco/test/jacocoTestReport.xml - name: Upload Artifacts uses: actions/upload-artifact@v1 diff --git a/build.gradle b/build.gradle index 19115ec922..53a9715f49 100644 --- a/build.gradle +++ b/build.gradle @@ -218,7 +218,10 @@ testsJar { test { maxParallelForks = 3 - jvmArgs "-Xmx3072m" + jvmArgs += "-Xmx3072m" + if (JavaVersion.current() > JavaVersion.VERSION_1_8) { + jvmArgs += "--add-opens=java.base/java.io=ALL-UNNAMED" + } retry { failOnPassedAfterRetry = false maxFailures = 30 @@ -324,6 +327,12 @@ tasks.assemble.finalizedBy(createChecksums) jacoco { reportsDirectory = file("$buildDir/jacoco") } +jacocoTestReport { + reports { + xml.required = true + } +} + tasks.test.finalizedBy(jacocoTestReport) // report is always generated after tests run tasks.jacocoTestReport.dependsOn(test) // tests are required to run before generating the report