Skip to content

Commit

Permalink
Fix unit tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 12, 2024
1 parent 652dd90 commit 4630fc7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -397,4 +397,14 @@ compileJava.dependsOn updateGitHooks

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}

// The following is required to fix running unit tests during build phase
tasks.configureEach { task ->
if (task.name.startsWith("test")) {
task.enabled = true
}
if (task.name.startsWith("testJunit")) {
task.enabled = false
}
}

0 comments on commit 4630fc7

Please sign in to comment.