Fantastic. Thanks. For future reference, I added the following to my
build.gradle:

test {
        testReport = false
        afterSuite {
                if (!it.parent) {
                        ant.project.addTaskDefinition("junitreport2",
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator)
                        ant.junitreport2(todir: testReportDir) {
                                fileset dir: testResultsDir, includes: 
"TEST-*.xml"
                                report todir: testReportDir, styledir: 
"junitreport", format: "frames"
                        }
                }
        }
}

Trying to use ant.junitreport directly failed due to the
XMLResultAggregator not being available (although it's clearly on the
test classpth as I managed to reference it).

To make the report customizations I just copied the XSL files from
ant-junit.jar into ./junitreport and modified them as required.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to