@@ -92,18 +92,17 @@ dependencies {
9292
9393sourceSets {
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