Try CiMate
MODIFY
.github/workflows/pr.yaml
.github/workflows/pr.yaml
@@ -35,3 +35,13 @@ jobs:
command: ./gradlew testJava${{ matrix.java }} --stacktrace
timeout_minutes: 60
max_attempts: 3
+
+ - name: Aggregate test reports with ciMate
+ if: always()
+ continue-on-error: true
+ env:
+ CIMATE_PROJECT_ID: mz1jo49x
+ run: |
+ wget -q https://get.cimate.io/release/linux/cimate
+ chmod +x cimate
+ ./cimate -v "**/TEST-*.xml"

MODIFY
gradle/java.gradle
gradle/java.gradle
@@ -284,4 +284,8 @@ tasks.withType(Test).configureEach {
// You can see tests that were retried by this mechanism in the collected test reports and build scans.
maxRetries = System.getenv("CI") != null ? 5 : 0
}
+
+ reports {
+ junitXml.outputPerTestCase = true
+ }
}

Try CiMate (#980)