capedwarf/capedwarf-blue — pull request #188 by rhusar (2013-06-01 12:05:01+00:00)
Title: Automatically run the cluster tests with Arquillian custom containers; u...

...sing JBOSS_HOME for CapeDwarf distribution

Hi @alesj here is a suturday gift for you.

This is the idea behind how to make the clustering tests automated.

There are 3 executions: first execution started the servers, second one runs the test (as was until now) and the 3rd one stops the servers.

This is one approach that leverages the 'hack' you have been using until now -- having deployments managed. If we were to make this differently, we would either need to make deployments unmanaged and thus having to deploy via deployer API (because custom containers do not support managed deployments) or we would have to stop and start the container after every test which is also undesirable.

Give it a try and let me know ;-)