Closed pazoozooCH closed 7 months ago
Hello,
Because arquillian is bit awkward and not supports suites, that extension is trying to compensate it as possible. Thats why some things needs to be done in not always best way.
2, 3. In plain arquillian its simple, you have test class and you are looking for deployments inside it. Only when you find more than one deployment you need to specify witch one use by @OperateOnDeployment annotation (witch is plain arquillian annotation).
With that extension you have all your deployments available for all test classes so you need to decide witch one would you like to use.
Probably would be possible to create something more complex witch own annotations stating witch deployments use but Im not sure if its worth it.
Could you elaborate a bit more about your setup?
Thanks for the feedback. Regarding 1, would be great if you could add a mechanism to avoid the classpath scanning, e.g. specifing the class name in a resource like META-INF/arquillilan-suite-extension.deploymentClass or something alike...
Hm, I haven't looked into details of how the suite extension is hooked up with Arquillain. Suppose the following setup (I'm using dummy names, but I'm sure you get the concept):
I guess you get the picture: I have multiple micro (or not so micro) deployments that I define in base classes. With pure Arquillian, this works like a charm. Arquillian find the deployment through class inheritance, everything is fine. Except that multiple extending classes will re-deploy the same deployment. Here, the suite extension could come into play. But it won't work with that setup as I have multiple classes that define deployments.
One solution would be to extend CustomerBaseTest and ContractBaseTest from a common base class, let's say DeploymentBase and declare all deployments in there. Then I could add the suite extension annotation on that class. But then I would have to annotate ALL test methods with an @OperateOnDeployment annotation which is not very nice.
Do you think there might be a siple fix for that or would it be too hard to integrate with Arquillian?
I'll close this, not using Arquilian anymore...
Hi
This might go a bit into the direction of #23, but I still thought I'd open a new issue.
I'm having integration tests that share a few deployments. However, I would really want to have different base classes to define them. I'm not really getting a few points:
Are these general limitations of your extensions or am I applying it somehow unexpectedly?
Thanks Martin