File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 1- tasks. register(' api ' , Test ) {
1+ tasks. register(' apiTest ' , Test ) {
22 description = " Runs api tests against docker-compose stack"
33 group = " Verification"
44
@@ -10,22 +10,15 @@ tasks.register('api', Test) {
1010
1111 dependsOn tasks. composeUp
1212 finalizedBy tasks. composeDown
13-
14- jvmArgs = [' -Xshare:off' ]
15- testLogging {
16- events " passed" , " skipped" , " failed"
17- exceptionFormat = ' full'
18- showStandardStreams = true
19- }
2013}
2114
2215tasks. named(' check' ) {
23- dependsOn tasks. named(' api ' )
16+ dependsOn tasks. named(' apiTest ' )
2417}
2518
2619tasks. named(' build' ) {
2720 dependsOn tasks. named(' test' )
28- dependsOn tasks. named(' api ' )
21+ dependsOn tasks. named(' apiTest ' )
2922}
3023
3124sourceSets {
@@ -35,18 +28,12 @@ sourceSets {
3528 runtimeClasspath + = sourceSets. main. output
3629
3730 }
38- resources. srcDir file(' src/apiTest/resources' )
3931 }
4032}
4133
4234configurations {
4335 apiTestImplementation. extendsFrom testImplementation
4436 apiTestRuntimeOnly. extendsFrom testRuntimeOnly
45-
46- // Ensure testRuntimeClasspath can be resolved for agent injection
47- testRuntimeClasspath {
48- canBeResolved = true
49- }
5037}
5138
5239dockerCompose {
You can’t perform that action at this time.
0 commit comments