maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Rosenvold (JIRA)" <>
Subject [jira] (SUREFIRE-809) Implement boolean expression to define test group to be run.
Date Tue, 13 Dec 2011 19:28:02 GMT


Kristian Rosenvold commented on SUREFIRE-809:

Anyone implementing this should note that it will be running on the fork-side, which means
that we have to shade any external dependency. It's also a clear advantage to keep the dependency
profile lean, since it affects fork startup-time - which is extremely lean in its current
> Implement boolean expression to define test group to be run.
> ------------------------------------------------------------
>                 Key: SUREFIRE-809
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Junit 4.x support
>    Affects Versions: 2.11
>            Reporter: Ondrej Zizka
>         Attachments: BooleanExpression.g
> 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:!default.jspa
For more information on JIRA, see:


View raw message