You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Manik Surtani (JIRA)" <ji...@codehaus.org> on 2010/02/05 23:00:55 UTC

[jira] Created: (SUREFIRE-600) Surefire + TestNG executes tests annotated as disabled, if superclasses are enabled.

Surefire + TestNG executes tests annotated as disabled, if superclasses are enabled.
------------------------------------------------------------------------------------

                 Key: SUREFIRE-600
                 URL: http://jira.codehaus.org/browse/SUREFIRE-600
             Project: Maven Surefire
          Issue Type: Bug
          Components: TestNG support
    Affects Versions: 2.5, 2.4.3
         Environment: TestNG 5.11, Maven 2.2.1, Apple & Sun JDK 6
            Reporter: Manik Surtani


This has to do with a test class extending a base test class, and both classes are annotated with {{@Test}}.  The parent class would have {{@Test (enabled = true)}} and the child {{@Test (enabled = false)}}.  The child test is still run, and this is contradictory to the behaviour of TestNG run in other forms (command line, via IDEs, etc).

I suspect this has to do with the way @Test annotations are parsed by Surefire when deciding which classes to pass to TestNG.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-600) Surefire + TestNG executes tests annotated as disabled, if superclasses are enabled.

Posted by "Oliver B. Fischer (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288576#comment-288576 ] 

Oliver B. Fischer commented on SUREFIRE-600:
--------------------------------------------

I have a similar problem with disabled test classes inheriting from {{org.jboss.arquillian.testng.Arquillian}}.

It is not possible to disable this tests in our setup.
                
> Surefire + TestNG executes tests annotated as disabled, if superclasses are enabled.
> ------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-600
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-600
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: TestNG support
>    Affects Versions: 2.4.3, 2.5
>         Environment: TestNG 5.11, Maven 2.2.1, Apple & Sun JDK 6
>            Reporter: Manik Surtani
>
> This has to do with a test class extending a base test class, and both classes are annotated with {{@Test}}.  The parent class would have {{@Test (enabled = true)}} and the child {{@Test (enabled = false)}}.  The child test is still run, and this is contradictory to the behaviour of TestNG run in other forms (command line, via IDEs, etc).
> I suspect this has to do with the way @Test annotations are parsed by Surefire when deciding which classes to pass to TestNG.

--
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