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

        

Reply via email to