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

Add support for filtering tests based on required execution environment

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.0.0.Beta1
    • 1.0.0.Alpha4
    • Configuration
    • None
    • Medium

      Allow the developer to declaratively specify the execution environment required for a given test to function. Then, Arquillian should filter out tests that require an execution environment that the target container doesn't provide. (In other words, only execute a test case if the target container provides the execution environment the test requires).

      To support this feature, we need to introduce the concept of an execution environment definition into the API and a mechanism for indicating which containers provide a given execution environment. The developer experience will be something like:

      @Retention(RetentionPolicy.RUNTIME)
      @Target(ElementType.TYPE)
      @RequiresEnvironment(JavaEE6Environment.class)
      public @interface RequiresJavaEE6 {}

      @RunWith(Arquillian.class)
      @RequiresJavaEE6
      public class MyTestCase

      { ... }

      or

      @RunWith(Arquillian.class)
      @RequiresEnvironment(JavaEE6Environment.class)
      public class MyTestCase { ... }

      Formal proposals and prototypes will be submitted as branches in github.

              dan.j.allen Dan Allen (Inactive)
              dan.j.allen Dan Allen (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: