Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-2170

RulesEnricher doubles each test enrichment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • None
    • core
    • None

      RulesEnricher created in ARQ-1954

      1. RulesEnricher is not implementor of TestEnricher, so it cannot be overrided through LoadableExtension.

      2. RulesEnricher#enrichRulesAndTestInstance adds into collection toEnrich test instance:

              toEnrich.add(event.getTestInstance());
      

      https://github.com/arquillian/arquillian-core/blob/master/junit/core/src/main/java/org/jboss/arquillian/junit/RulesEnricher.java

      So, if MyTest have`nt field rules, will be only one MyTest enrichment. If MyTest contains one or more test rule, will be two MyTest enrichments.
      Each testEnrichment of MyTest do a soap call to server to prepare data for test. It is very important to me, one or two soap call will happen.

      How can I change this behaviour?

              mjobanek Matous Jobanek
              kostd kostd kostd (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: