I am looking to a testing / continuous integration tool which can help me with the following:
RunInside a containerMaven project, allow me to verify myrun a JUnit test case that, using some API, deploy an application can correctly be deployed on the top of the container, i.e. a Junit test case must be executed only after the container is up and runningwait then test with the same API that the application has been correctly deployed. TheFor this I need to launch the container must be launched by executingthrough a specific shellbatch file or scripta shell file before the continuos integration tool executes the test.
-
Run a set of apublic void MyTest() throws Exception { AdminApi adminApi = AdminApiFactory.NET tests only after the the container has been launched and the application deployedgetApi("myprotocol://localhost:1947"); Deployable deployable = Deployable.fromFile("target/myapp.jar"); adminApi.deploy(deployable); Thread.sleep(2000); Assert.assertEquals(adminApi.getDeployedApp("myApp").getStatus,STATUS.CORRECTLY_DEPLOYED) }
How canAlso, after the tests have been executed, I need to shut down the container by killing the process. The goal of such tests is to verify our assembly/packaging into jar correctness. (If one do this?dependencies is missing in the myapp.jar, the deployment will fail )
- Inside a .NET project, run all the .NET tests only after the the container has been launched and the application deployed. I have a client application that uses the service exposed by myapp.jar and I need to test the two in integration. I need a way to launch the container, deploy myapp and then execute these set of tests.