Skip to content

Import the JUnit XML that eclipseTest writes - #5

Merged
donat merged 1 commit into
teamcity-configfrom
donat/ci/import-eclipsetest-junit-xml
Sep 8, 2026
Merged

donat merged 1 commit into
teamcity-configfrom
donat/ci/import-eclipsetest-junit-xml

Conversation

@donat

@donat donat commented Sep 8, 2026

Copy link
Copy Markdown
Member

The TeamCity side of eclipse-buildship#1375. Merge that one first, this does nothing on its own.

eclipseTest is not a Gradle Test task, so the Gradle runner's own test listener never sees it and TeamCity shows no test names. A failed run is just a bare Gradle exception in the UI. The Buildship PR makes the task write JUnit XML again, this picks it up with the XML report processing feature.

The rules are narrow on purpose:

+:**/build/test-results/eclipseTest/*.xml
+:**/build/test-results/crossVersionEclipseTest/*.xml

A wildcard over test-results would also match what a real Test task produces, and the Gradle runner already reports those, so every such test would show up twice. The single * matters too, the binary results now live in a binary subdirectory next to the XML files.

The sanity check scenario runs no tests, so it does not get the feature. That way "no reports found" in a build log always means something went wrong rather than being expected noise on every phase 1 build.

Verified with mvn teamcity-configs:generate on Java 21: 51 of the 52 individual scenario build types get the xml-report-plugin extension, the sanity check is the one that does not.

TeamCity shows no test names for eclipseTest. A failed run is just a bare
Gradle exception in the UI.

eclipseTest is not a Gradle Test task, so the Gradle runner's own test
listener never sees it. From
eclipse-buildship#1375 on it writes
JUnit XML again, so pick that up with the XML report processing feature.

The rules are narrow on purpose. A wildcard over test-results would also
match what a real Test task produces, and the runner already reports
those, so every such test would show up twice.

The sanity check runs no tests and is left out, so that "no reports
found" in a build log always means something went wrong.
@donat
donat force-pushed the donat/ci/import-eclipsetest-junit-xml branch from 6a37c68 to f1c5234 Compare September 8, 2026 13:13
@donat
donat marked this pull request as ready for review September 8, 2026 13:13
@donat
donat merged commit 57b0f09 into teamcity-config Sep 8, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant