If all you want to achieve is to run integration tests with a separate task,
the following will do the job:

test {
    exclude "**/*IT.class"
}

task integrationTest(type: Test, dependsOn: testClasses) {
    include "**/*IT.class"
}

check.dependsOn integrationTest

If you also want to separate class paths and/or source directories, have a
look at the samples/java/withIntegrationTests project in the full Gradle
distribution.

--
Peter Niederwieser 
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradle Inc.
http://www.gradle.biz
Founder, Spock Framework
http://spockframework.org

-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/Running-Integration-Tests-Only-tp3374572p3374720.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