Skip to content

Commit 85e46ca

Browse files
[bc-212-test]: testing memory pressure issues
1 parent ddf5685 commit 85e46ca

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

build.gradle

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,32 +120,33 @@ subprojects {
120120
}
121121
}
122122

123-
// Register integrationTest task for all subprojects
124-
// This creates the task type so subprojects can configure it (e.g., model/build.gradle line 40)
125123
tasks.register('integrationTest', Test) {
126-
// Set default JVM args for integration test workers
124+
dependsOn subprojects.integrationTest
125+
126+
useJUnitPlatform()
127+
128+
// This prevents integrationTests from hanging indefinitely
129+
timeout = Duration.ofMinutes(180)
130+
131+
// Integration test workers need same memory as unit tests
127132
// Actual CI configuration is controlled via integration_tests.sh script
128133
jvmArgs += ["-Xmx640m",
129134
"-XX:+StartAttachListener",
130135
"-XX:+HeapDumpOnOutOfMemoryError",
131136
"-XX:HeapDumpPath=/var/log/uaa-tests.hprof"
132137
]
133138

139+
// Enable JaCoCo for integration tests
140+
jacoco {
141+
enabled = true
142+
}
143+
134144
testLogging {
135145
events("failed")
136146
exceptionFormat = "full"
147+
// Uncomment the following line to see all standard output from tests (there's a ton of it!)
148+
//showStandardStreams = true
137149
}
138-
139-
// This prevents integrationTests from hanging indefinitely
140-
timeout = Duration.ofMinutes(180)
141-
142-
// Make this a pure aggregator - depend on subproject tests but don't run tests itself
143-
// The key: set the test sources to empty so this task has nothing to execute
144-
testClassesDirs = files()
145-
classpath = files()
146-
147-
// Coordinate all subproject integration tests
148-
dependsOn subprojects.integrationTest
149150
}
150151

151152
tasks.register('generateDocs') {}

0 commit comments

Comments
 (0)