[arquillian-issues] [JBoss JIRA] Commented: (ARQ-287) Add support for filtering tests based on required execution environment

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Mon Sep 13 18:56:29 EDT 2010


    [ https://jira.jboss.org/browse/ARQ-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12550666#action_12550666 ] 

Aslak Knutsen commented on ARQ-287:
-----------------------------------

by scale I mean, we need arquillian-api changes every time a container/enricher is added/changed/removed..

> Add support for filtering tests based on required execution environment
> -----------------------------------------------------------------------
>
>                 Key: ARQ-287
>                 URL: https://jira.jboss.org/browse/ARQ-287
>             Project: Arquillian
>          Issue Type: Feature Request
>          Components: Configuration
>    Affects Versions: 1.0.0.Alpha4
>            Reporter: Dan Allen
>            Assignee: Dan Allen
>             Fix For: 1.0.0.Beta1
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list