Skip to content

Commit af8acec

Browse files
authored
Prepare release 4.7.2 (#1100)
1 parent 27c026f commit af8acec

2 files changed

Lines changed: 17 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
### Fixed
1010

11+
## [4.7.2] - 2025-2-03
12+
13+
### Fixed
14+
- Fixed duplication of Groovy tests in results ([#1098](https://github.com/opendevstack/ods-quickstarters/issues/1098))
15+
1116
## [4.7.1] - 2025-1-31
1217

1318
### Fixed

e2e-spock-geb/files/build.gradle

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,17 @@ dependencies {
9292

9393
sourceSets {
9494
[TestExecutionPhases.INSTALLATION, TestExecutionPhases.INTEGRATION, TestExecutionPhases.ACCEPTANCE].each { phase ->
95-
"$phase" {
96-
groovy {
97-
srcDir "src/test/${phase}/groovy"
98-
}
99-
java {
100-
srcDir "src/test/${phase}/java"
101-
}
102-
resources {
103-
srcDir 'src/test/resources'
95+
[TestLanguages.JAVA, TestLanguages.GROOVY].each { language ->
96+
"$phase-$language" {
97+
"$language" {
98+
srcDir "src/test/${phase}/${language}"
99+
}
100+
resources {
101+
srcDir 'src/test/resources'
102+
}
103+
compileClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntimeClasspath
104+
runtimeClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntimeClasspath
104105
}
105-
compileClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntimeClasspath
106-
runtimeClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntimeClasspath
107106
}
108107
}
109108
}
@@ -156,17 +155,9 @@ def executeTest(def type, def language, def env) {
156155
}
157156
}
158157

159-
// Since groovy tests are junit tests and they are run as part of java tests,
160-
// we disable here the execution of junit tests if not running for java language.
161-
// jenkins to jira integration does not allows to run a test more than once.
162-
if ("${language}".equalsIgnoreCase(TestLanguages.JAVA)) {
163-
// Mandatory to run JUnit 5 test but incompatible with groovy tests
164-
useJUnitPlatform()
165-
}
166-
167158
ignoreFailures = "${CONTINUE_WHEN_TEST_FAIL}"
168-
testClassesDirs = sourceSets["${type}"].output.classesDirs
169-
classpath = sourceSets["${type}"].runtimeClasspath
159+
testClassesDirs = sourceSets["${type}-${language}"].output.classesDirs
160+
classpath = sourceSets["${type}-${language}"].runtimeClasspath
170161

171162
systemProperty "geb.env", env
172163

0 commit comments

Comments
 (0)