hi, going through http://www.packtpub.com/gradle-effective-implementation-guide/book and running a junit test and a testng test using the build script below.
it works fine, but there is only one index.html file for the junit tests. is there an easy way to move the index.html file produced by the testng task to say indexng.html before the junit task? steps on it?
thanks
apply plugin: 'java'
repositories { mavenCentral() }
dependencies {
testCompile 'junit:junit:[4.8,)', 'org.testng:testng:6.5.1+'
}
task testNG(type: Test) { useTestNG() }
test.dependsOn testNG
task runJava(dependsOn: test) << {
javaexec {
main = 'p.Foo'
classpath sourceSets.main.runtimeClasspath
}
}
runJava.description = 'Run Foo'