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.

Reply via email to