Now you need to start the container and deploy the application from the build script before running the tests, depending on the deployed application. This is a typical need for integration tests, end-to-end / functional tests, ui tests.
, " " /. , , . , , , .
, Cargo. Cargo - Java API / . Java, Ant Maven.
Maven, - "-". ... "pre-integration-test" "post-integration-test". / . Ant, Ant.
, maven, Mavan Jetty Plugin Configuration Guide. , , , , " " " ".