Rob Fletcher
2012-06-07 21:01:29 UTC
Hi
I'm trying to write some integration tests that require an application to be running for execution & wondering what the best way is to manage this in gradle.
I have defined an `integrationTest` task of type _Test_ and tried the following methods to start and stop the application:
- using `doFirst` and `doLast`
- using `beforeSuite` and `afterSuite`
- using Ant style dependency chaining
With all these the problem I find is that the application is not stopped if the tests fail & is still running after gradle exits. Is there a 'correct' way to handle this scenario?
I'm trying to write some integration tests that require an application to be running for execution & wondering what the best way is to manage this in gradle.
I have defined an `integrationTest` task of type _Test_ and tried the following methods to start and stop the application:
- using `doFirst` and `doLast`
- using `beforeSuite` and `afterSuite`
- using Ant style dependency chaining
With all these the problem I find is that the application is not stopped if the tests fail & is still running after gradle exits. Is there a 'correct' way to handle this scenario?
--
Rob Fletcher
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
Rob Fletcher
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)