Skip to content

Commit

Permalink
Prepare release 4.7.2 (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ authored Feb 3, 2025
1 parent 27c026f commit af8acec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

### Fixed

## [4.7.2] - 2025-2-03

### Fixed
- Fixed duplication of Groovy tests in results ([#1098](https://github.com/opendevstack/ods-quickstarters/issues/1098))

## [4.7.1] - 2025-1-31

### Fixed
Expand Down
33 changes: 12 additions & 21 deletions e2e-spock-geb/files/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,17 @@ dependencies {

sourceSets {
[TestExecutionPhases.INSTALLATION, TestExecutionPhases.INTEGRATION, TestExecutionPhases.ACCEPTANCE].each { phase ->
"$phase" {
groovy {
srcDir "src/test/${phase}/groovy"
}
java {
srcDir "src/test/${phase}/java"
}
resources {
srcDir 'src/test/resources'
[TestLanguages.JAVA, TestLanguages.GROOVY].each { language ->
"$phase-$language" {
"$language" {
srcDir "src/test/${phase}/${language}"
}
resources {
srcDir 'src/test/resources'
}
compileClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntimeClasspath
runtimeClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntimeClasspath
}
compileClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntimeClasspath
runtimeClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntimeClasspath
}
}
}
Expand Down Expand Up @@ -156,17 +155,9 @@ def executeTest(def type, def language, def env) {
}
}

// Since groovy tests are junit tests and they are run as part of java tests,
// we disable here the execution of junit tests if not running for java language.
// jenkins to jira integration does not allows to run a test more than once.
if ("${language}".equalsIgnoreCase(TestLanguages.JAVA)) {
// Mandatory to run JUnit 5 test but incompatible with groovy tests
useJUnitPlatform()
}

ignoreFailures = "${CONTINUE_WHEN_TEST_FAIL}"
testClassesDirs = sourceSets["${type}"].output.classesDirs
classpath = sourceSets["${type}"].runtimeClasspath
testClassesDirs = sourceSets["${type}-${language}"].output.classesDirs
classpath = sourceSets["${type}-${language}"].runtimeClasspath

systemProperty "geb.env", env

Expand Down

0 comments on commit af8acec

Please sign in to comment.