Peter, Building on what Rene provided, I actually ended up doing exactly what you suggested. I was unaware of the check.dependsOn though. Thanks for the help from you both.
-----Original Message----- From: Peter Niederwieser [mailto:[email protected]] Sent: Monday, February 07, 2011 1:39 PM To: [email protected] Subject: [gradle-user] Re: Running Integration Tests Only 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
