Jeff Wise
10/02/2025, 3:09 PMOctavia Togami
10/02/2025, 3:11 PMJeff Wise
10/02/2025, 3:29 PMOctavia Togami
10/02/2025, 3:31 PMTrevJonez
10/02/2025, 3:44 PMimport com.gradle.develocity.agent.gradle.test.ImportJUnitXmlReports
import com.gradle.develocity.agent.gradle.test.JUnitXmlDialect
ImportJUnitXmlReports.register(project.tasks, customTask, JUnitXmlDialect.GENERIC)TrevJonez
10/02/2025, 3:45 PMTrevJonez
10/02/2025, 3:46 PMVampire
10/02/2025, 5:18 PMTest task run and not have no-source is trivial, just register another skip-when-empty input using the runtime API and make sure it is not empty but contains anything like the build script or a temporary file. A task is only skipped with no-source if all those inputs are empty.
You could also implement a JUnit Platform engine that "translates". A JUnit engine can also report test out of thin air and for Gradle they are just tests that come from JUnit Platform. You might need to follow some restrictions if the predictive test selection needs them or similar. But it should be well doable I guess, even without that new Gradle API.Jeff Wise
10/02/2025, 6:38 PM