[jboss-jira] [JBoss JIRA] (AS7-5844) TS: Tests grouping 2: Create categories & let devs categorize the tests.

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Sun Nov 25 23:11:21 EST 2012


    [ https://issues.jboss.org/browse/AS7-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736828#comment-12736828 ] 

Stuart Douglas commented on AS7-5844:
-------------------------------------

For the most part we already have these groupings, however it is based on package. This is not a 100% grouping, as some tests affect several things (e.g. CDI/EJB integration), however it is in general a much more fine grained classification than you are likely to get with annotations.

IMHO for this to work properly we really need some kind of package based mechanism, so either we have a simple approach where we can just run all tests in a package and sub packaged (e.g. to run EJB tests something like:

mvn test -Dpackage=org.jboss.as.test.integration.ejb

Which seems like the simplest solution. Alternatively if there is a use case that requires the annotation based approach then we would need to support package level annotations so we can simply state that all tests in org.jboss.as.test.integration.ejb are EJB tests.
                
> TS: Tests grouping 2: Create categories & let devs categorize the tests.
> ------------------------------------------------------------------------
>
>                 Key: AS7-5844
>                 URL: https://issues.jboss.org/browse/AS7-5844
>             Project: Application Server 7
>          Issue Type: Feature Request
>            Reporter: Ondrej Zizka
>            Assignee: Ondrej Zizka
>
> Based on AS7-2086 and SUREFIRE-803, we can now create the categories for tests.
> They would be in testsuite/shared.
> Example:
> {code}
> interface AllTests;
> interface ATests extends AllTests;
> interface BTests extends AllTests;
> interface AaTests extends ATests;
> @Category(ATests.class)	public void ATest();
> @Category(AaTests.class) public void AaTest();
> @Category(BTests.class) public void BTest();
> {code}
> It should be possible to have multiple categories:
> {code}
> @Categories({Foo.class, Bar.class})
> {code}
> TODO: Check if it also works with FailSafe.
> Some categories candidates (feel free to extend):
> * ASTest
> ** EJB
> ** JPA
> ** Management
> ** Security
> *** CommonCriteria
> ** NonArquillian
> ** Transactions
> ** Multinode
> *** Clustering

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


More information about the jboss-jira mailing list