I was just wondering whether there is planned support for defining some kind of order for calling the TestEnrichers ?
When I am defining custom TestEnrichers, it would be quite handy to have such an order. Then I would be able to presume that some enrichment was already done and use this knowledge in the next TestEnricher. Currently it is not defined when an enricher will be called.
Am I right ? Is it feasible and desired ? Is there any plan to implement some kind of precendence for enrichers ?
P.S. I have just find https://issues.jboss.org/browse/ARQ-358, which is for disabling some of the enrichers in some situations, if there is another JIRA, please point me there.
I think this is probably the closest one: https://issues.jboss.org/browse/ARQ-480
You can always share the objects created in a TestEnricher in the Arquillian Test context via a InstanceProducer, but you still know nothing about the order.
Another alternative could be to create the shared object on a Observer observing BeforeEnrichment, then just inject them in the TestEnricher.