Ok, but does Gradle have support for “standard JUnit reports” ? Or, in other words, how would you, being a Gradle developer, handle distribution of JUnit reports, after the “test” task has finished?
Right now I get a .xml output file from Gradle in the build/test-results directory ( from the following configuration) :
test {
testLogging {
exceptionFormat "full" // default is "short"
events "started", "passed", "skipped", "failed", "standardOut", "standardError"
}
}
I was guessing that Gradle had the ability to load a Maven configuration (in the form of a reporting plugin) and execute it but I am wrong?
I was guessing that Gradle had the ability to load a Maven configuration (in the form of a reporting plugin) and execute it but I am wrong?
Gradle doesn’t have this ability.
Your code snippet only configures console logging. It has no influence on the XML/HTML report generated. Gradle does generate an HTML report unless you set ‘test.testReport = false’. It doesn’t look like the (ugly) Ant/Maven JUnit report though. (JUnit itself doesn’t know anything about report generation.)