What I noticed on a first sight is the "<<" on your runIntegrationTests
task. This should be
task runIntegrationTests(type: Test, dependsOn: testClasses) {
useTestNG()
includes = ["**/*IT.class"]
}
The rest of the snippet seems to be okay. But be aware, that the order
of the dependsOn definition on tasks isn't guaranteed.
regards,
René
Am 21.09.11 00:08, schrieb Neil Chaudhuri:
I am using Gradle Milestone 3 and the Gradle Tomcat plugin, and I
would simply like to start Tomcat, run my tests, and stop Tomcat. I
have the following closures:
tomcatStart {
contextPath = "/${webContext}"
}
tomcatStop {
stopKey = "foo"
}
task runIntegrationTests(type: Test, dependsOn: testClasses) << {
useTestNG()
includes = ["**/*IT.class"]
}
Then I write a task like this :
task runWebServerIntegrationTests(dependsOn: tomcatStart,
runIntegrationTests, tomcatStop)
But when I do so, I get "Could not find method tomcatStart() for
arguments [build_3depkd6mj13l633esnp0isldpc$_run_closure3@42886462] on
project"
I'm sure it is something simple, but I haven't been able to figure it
out from the documentation. Any insight is appreciated.
Thanks.
--
-----------------------
regards,
René
rene groeschke
http://www.breskeby.com
@breskeby
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email