[
https://jira.jboss.org/browse/ARQ-287?page=com.atlassian.jira.plugin.syst...
]
Dan Allen commented on ARQ-287:
-------------------------------
In both proposals, the include/exclude surefire configuration has been completely replaces
with a required execution environment annotation on each test class. Note, however, that
this feature only works for JUnit until we get support in TestNG to veto the test
(currently a work in progress).
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