Robert Fletcher
2012-05-30 21:59:51 UTC
Hi
I'm using Casper JS (http://casperjs.org/) to do some functional
testing. It generates a JUnit compatible XML report file. Is it
possible that I can get Gradle to parse the XML and generate shiny
HTML reports as for 'regular' JUnit/Spock tests?
What I'm doing currently is:
task testSite(type: Exec) {
commandLine 'casperjs', 'test', 'src/test/casper',
"--xunit=$testResultsDir/casper-suite.xml"
}
which is working fine but I just end up with XML. It looks like
Gradle's Test task type is purely geared up for executing JVM based
testing and there's not a way to run the report generation step in
isolation.
Thanks,
Rob
I'm using Casper JS (http://casperjs.org/) to do some functional
testing. It generates a JUnit compatible XML report file. Is it
possible that I can get Gradle to parse the XML and generate shiny
HTML reports as for 'regular' JUnit/Spock tests?
What I'm doing currently is:
task testSite(type: Exec) {
commandLine 'casperjs', 'test', 'src/test/casper',
"--xunit=$testResultsDir/casper-suite.xml"
}
which is working fine but I just end up with XML. It looks like
Gradle's Test task type is purely geared up for executing JVM based
testing and there's not a way to run the report generation step in
isolation.
Thanks,
Rob