Skip to content

Commit

Permalink
Update jacoco test report config
Browse files Browse the repository at this point in the history
  • Loading branch information
ke4 authored Oct 2, 2023
1 parent 3b01b1f commit 144f28e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions buildSrc/src/main/groovy/atlas-web-app.java-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,19 @@ test {
jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005'
}

if (project.hasProperty('excludeTests')) {
exclude project.property('excludeTests')
}

if (project.hasProperty('testResultsPath')) {
reporting.baseDir = "${buildDir}/reports/" + project.property('testResultsPath')
testResultsDirName = "${buildDir}/test-results/" + project.property('testResultsPath')
testReportDirName = project.property('testResultsPath')
testResultsDirName = project.property('testResultsPath')

jacoco {
destinationFile = file("${buildDir}/jacoco/${project.property('testResultsPath')}.exec")
}
}

if (project.hasProperty('excludeTests')) {
exclude project.property('excludeTests')
}

testLogging {
outputs.upToDateWhen {false}
showStandardStreams = true
Expand All @@ -148,7 +148,7 @@ jacocoTestReport {
executionData.setFrom fileTree(dir: "${buildDir}/jacoco", include: '*.exec' )

reports {
html.destination file("${buildDir}/jacoco/html")
html.outputLocation = layout.buildDirectory.dir("reports/jacoco")
}
}

0 comments on commit 144f28e

Please sign in to comment.