You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ondrej Zizka (JIRA)" <ji...@codehaus.org> on 2012/02/11 06:13:03 UTC

[jira] (SUREFIRE-809) Implement boolean expression to define test group to be run.

    [ https://jira.codehaus.org/browse/SUREFIRE-809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291378#comment-291378 ] 

Ondrej Zizka commented on SUREFIRE-809:
---------------------------------------

Hi John, could you please add a link to docs and/or the test cases? Thx.
                
> Implement boolean expression to define test group to be run.
> ------------------------------------------------------------
>
>                 Key: SUREFIRE-809
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-809
>             Project: Maven Surefire
>          Issue Type: New Feature
>          Components: Junit 4.x support, TestNG support
>    Affects Versions: 2.11
>            Reporter: Ondrej Zizka
>            Assignee: John Casey
>             Fix For: 2.12
>
>         Attachments: BooleanExpression.g, category-expression.jj
>
>
> This is an alternative to SUREFIRE-808.
> Instead of having hard-coded filtering structure combining two lists.
> an expression could be parsed and evaluated for each test.
> Each test would be "tagged" using 
> {code}
> @Categories({ MyCateg1.class, MyCateg2.class, ... })
> {code}
> Surefire's `group` config param would be an expression like:
> {code}
> <groups>( Ejb AND (CommonCriteria OR Security) ) AND NOT( Clustering )<groups>
> {code}
> Presence of a category of given name would be evaluated as true, absence of it as false.
> Interface inheritance would be taken into account.
> This mechanism would provide unlimited possibilities of grouping tests, and would be very beneficial for huge testuites counting thousands of tests.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira