Just want to make sure I understand what is the problem with the deployment for different containers, what is doable right now and what is not.
I want to have multiple @Deployment annotations for different container types. One for Glassfish 3.1, one for AS7 - all in one test case. Now I want to execute some tests using one type of container and different tests using another type of container.
As I understand, right now it's not achievable in a _single test run_?
I can, however, define different deployments for different containers and can activate one or another using System property (PoC for my own purpose: http://pastebin.com/wj0f3XNX - don't mind usage of string as deployment name instead of custom annotation - didn't know about https://issues.jboss.org/browse/ARQ-293 before). This property activates maven profile which attaches the appropriate container type dependency.
My question is - can I have both maven dependencies (for both container types) defined at the same time and choose one of those on per-test base, i.e. using arquillian.xml or some extension? In other words, can I omit the stage of using Maven profiles to choose the container adapter I want to run the tests with?
I've looked at the <container> element in arquillian.xml and there is a <dependency> maven style element (https://issues.jboss.org/browse/ARQ-196) which looks promising. Unfortunately I can't find more detailed info what this element is for. Could it be used for the purpose I discussed above, like:
Please correct me if I've made some wrong assumptions.
PS. Quite old discussion about the feature: https://community.jboss.org/message/561762#561762