1 Reply Latest reply on Apr 29, 2013 10:24 AM by aslak

    Test Enrichers calling order

    jhuska

      Hello all,

       

      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 ?

       

      Thanks,

      Juro

       

      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.

        • 1. Re: Test Enrichers calling order
          aslak

          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.