Thank you Peter. You guys make gradle shine.
I use the first way in my project, put groovy test, which is actually a geb
web test based on junit4, in src/test/groovy and webdriver test in
src/test/java, and use convension to select different test to run, works
fine.
This is from of my build file:
repositories {
mavenCentral()
}
configurations {
compile.transitive = true
runtime.transitive = true
gebTestCompile {
extendsFrom testCompile
}
gebTestRuntime {
extendsFrom gebTestCompile, testRuntime
}
}
dependencies {
groovy "org.codehaus.groovy:groovy-all:1.7.5"
compile 'javax.servlet:servlet-api:2.4'
compile 'mysql:mysql-connector-java:5.1.6'
testCompile 'junit:junit:4.8.1'
testCompile 'org.seleniumhq.selenium:selenium:2.0b2'
testCompile "org.codehaus.geb:geb-core:0.5.1"
testCompile "org.codehaus.geb:geb-junit4:0.5.1"
}
more...
//AT is for webdriver test, GT for geb test
test {
exclude '**/*AT.*'
exclude '**/*GT.*'
}
task webdriverTest( type: Test ) {
include '**/*AT.*'
}
task gebTest( type: Test ) {
include '**/*GT.*'
}
--
View this message in context:
http://gradle.1045684.n5.nabble.com/where-to-put-different-test-file-in-project-structure-tp3407720p3408043.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