We're remote hot-deploying a test war and running tests one at a time (for now) using:
This works well until we try to add more classes that we also want run at the same time:
When we do this, the test war gets deployed, SomeClassTest's tests run and then the test war gets undeployed and then deployed again for SomeOtherTest. Is there any way to configure Arquillian to keep using the same deployed test war for all tests being run?
Is there any way to configure Arquillian to keep using the same deployed test war for all tests being run?
This need looks similar to the feature requests ARQ-197 and ARQ-567. However, in your case you wish to share deployments across "unrelated" testcases. Is this something you desire? Or would your needs be taken care of, by either of those feature requests?
How do you share the @Deployment annotated methods in your test class hierarchy? Are you using a singular method in a class, only to invoke it in your @Deployment methods in each test class?
ARQ-567 relates to the use a shared @Deployment in a Test Suite like a JUnit TestSuite e.g. @RunWith(Suite.class), where the suite is composed of several test classes. As far as I know, TestNG requires suites to be specified in XML files, so I'm unsure if this will suit your need.