Not sure if this is encouraged or not, but it works :)

    task testSite(type: Exec) {
        commandLine 'casperjs', 'test', 'src/test/casper',
"--xunit=$testResultsDir/casper-suite.xml"
        doLast{
                def reporter = new
org.gradle.api.internal.tasks.testing.junit.report.DefaultTestReport() 
                reporter.testResultsDir = file('path to result files from 
casper')
                reporter.testReportDir = file('path to where you want the 
reports
written')
                reporter.generateReport()
        }
    }


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Generating-test-reports-from-non-JUnit-based-tests-tp5709848p5709857.html
Sent from the gradle-user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email


Reply via email to