Skip to content

Commit

Permalink
test coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Jan 16, 2025
1 parent a9d648e commit bce25cb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
28 changes: 16 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ repositories {
}

jacoco {
toolVersion = "0.8.7"
toolVersion = "0.8.12"
}

tasks.jacocoTestReport {
dependsOn test // Ensure tests run before generating the report
reports {
xml.required.set(true)
html.required.set(true)
xml.required = false
csv.required = false
html.required = true
}
}

Expand All @@ -38,9 +39,9 @@ dependencies {
testImplementation('com.intellij.remoterobot:remote-fixtures:' + remoteRobotVersion) {
exclude group: 'com.square.okio', module: 'okio'
}
testImplementation 'com.squareup.okio:okio:3.8.0'
testImplementation 'com.squareup.okio:okio:3.10.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
testImplementation 'com.squareup.okhttp3:okhttp:4.9.2'
testImplementation 'com.squareup.okhttp:4.12.0'
testImplementation 'junit:junit:4.11-redhat-1'
testImplementation 'junit:junit:4.13.1'

Expand Down Expand Up @@ -89,6 +90,10 @@ test {
useJUnitPlatform()
systemProperty 'uiWaitDuration', project.findProperty('uiWaitDuration') ?: 300
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
showExceptions true
showCauses true
showStackTraces true
showStandardStreams = true
}
}
Expand All @@ -99,22 +104,21 @@ runIdeForUiTests {
}

jacocoTestReport {
additionalSourceDirs.setFrom(files(sourceSets.main.allSource.srcDirs))
classDirectories.setFrom(
fileTree(dir: "$buildDir/classes/java/main", excludes: [])
)
executionData.setFrom(fileTree(dir: "$buildDir", includes: ["jacoco/test.exec"]))
dependsOn test

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


publishPlugin {
token.set System.getenv("PUBLISH_TOKEN")
if (project.hasProperty("rchannels")) {
channels = [rchannels.toString()]
}
}


java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit bce25cb

Please sign in to comment.