You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (Closed) (JIRA)" <ji...@apache.org> on 2012/02/11 03:27:04 UTC

[jira] [Closed] (DELTASPIKE-63) Integration test profiles for OWB and Weld don't honor category annotations

     [ https://issues.apache.org/jira/browse/DELTASPIKE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek closed DELTASPIKE-63.
--------------------------------------

    
> Integration test profiles for OWB and Weld don't honor category annotations
> ---------------------------------------------------------------------------
>
>                 Key: DELTASPIKE-63
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-63
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Tests
>         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
>            Reporter: Christian Kaltepoth
>            Assignee: Christian Kaltepoth
>             Fix For: 0.1-incubating
>
>         Attachments: DELTASPIKE-63.patch
>
>
> It seems like the integration test profiles for OWB and Weld ignore the @Category annotations used to restrict tests to a certain runtime environment like "WebProfile" or "FullProfile". This problem occurs when running the tests in both "core-impl" and "integration-test".
> To reproduce this just add this failing method to some test class and execute the tests in the default profile OWB:
>     @Test 
>     @Category(WebProfileCategory.class)
>     public void testCategory() {
>         fail("Should not get executed!");
>     }

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