Skip to content

Commit

Permalink
Fix Gradle JaCoCo configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
praseodym committed May 4, 2024
1 parent a591e17 commit 662f13e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Run a build and generate the dependency graph which will be submitted post-job
run: ./gradlew build
- name: Test Coverage
run: ./gradlew jacocoTestReport jacocoFix --scan
run: ./gradlew jacocoTestReport
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down
18 changes: 0 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,6 @@ dependencies {
implementation 'org.javatuples:javatuples:1.2'
}

jacocoTestReport {
reports {
xml.required = true
html.required = false
}
}

task jacocoFix(type: Copy) {
from 'build/reports/jacoco/test/jacocoTestReport.xml'
into './src/main/java/'
rename { String fileName ->
fileName.replace("jacocoTestReport.xml", "jacoco.xml")
}
}

test {
maxHeapSize = "4096m"
}


check.dependsOn jacocoTestReport

0 comments on commit 662f13e

Please sign in to comment.