Skip to content

Commit

Permalink
Configure test task
Browse files Browse the repository at this point in the history
Closes gh-76
  • Loading branch information
rainboyan committed Jan 6, 2025
1 parent e50bf5d commit 0ae5932
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
// classpath "io.github.groovylang.groovydoc:groovydoc-gradle-plugin:1.0.1"
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
classpath "com.github.erdi:webdriver-binaries-gradle-plugin:$webdriverBinariesVersion"
// classpath "org.gradle:test-retry-gradle-plugin:1.3.1"
classpath "org.gradle:test-retry-gradle-plugin:1.6.0"
classpath "org.hibernate:hibernate-core-jakarta:$hibernateCoreVersion"
}
}
Expand Down Expand Up @@ -105,7 +105,7 @@ subprojects { Project subproject ->
apply plugin: 'checkstyle'
apply plugin: 'codenarc'
apply plugin: 'signing'
// apply plugin: "org.gradle.test-retry"
apply plugin: "org.gradle.test-retry"

if (isPluginProject) {
apply plugin: 'org.graceframework.grace-plugin'
Expand Down Expand Up @@ -138,18 +138,20 @@ subprojects { Project subproject ->
withSourcesJar()
}

// tasks.withType(Test) {
// configure {
// retry {
// maxRetries = 2
// maxFailures = 20
// failOnPassedAfterRetry = true
// filter {
// excludeClasses.add("*GroovyChangeLogSpec")
// }
// }
// }
// }
tasks.withType(Test) {
useJUnitPlatform()
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
}
configure {
retry {
maxRetries = 2
maxFailures = 20
failOnPassedAfterRetry = true
}
}
}

groovydoc.classpath = configurations.documentation

Expand Down

0 comments on commit 0ae5932

Please sign in to comment.