Skip to content

Commit 1c38e20

Browse files
authored
4.x: Try to fix parallel testng failures (#8067)
* 4.x: Report back test failures in a readable manner for PRs/Snaps * gradle_pr.yml `test_failures` -> `test failures` * 4.x: Enable parallel TestNG run
1 parent 4151bfa commit 1c38e20

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,16 @@ tasks.register('testNG', Test) {
192192
// Tell it to use TestNG explicitly
193193
useTestNG()
194194

195-
maxParallelForks = 1
195+
maxHeapSize = "1200m"
196+
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
197+
// maxParallelForks = 1
198+
199+
// Ensure JUnit-compatible XML output in the standard location
200+
reports {
201+
html.required = true
202+
junitXml.required = true
203+
junitXml.outputLocation = file("${buildDir}/test-results/test") // ← important
204+
}
196205

197206
// Ensure JUnit-compatible XML output in the standard location
198207
reports {

0 commit comments

Comments
 (0)