Groups stipulated in the pom file get ignored when using a suiteXMLFile
-----------------------------------------------------------------------

                 Key: MSUREFIRE-179
                 URL: http://jira.codehaus.org/browse/MSUREFIRE-179
             Project: Maven 2.x Surefire Plugin
          Issue Type: Bug
          Components: TestNG support
    Affects Versions: 2.2, 2.3, 2.4
         Environment: JDK 1.5
            Reporter: Muhammad Alsebaey


When using suiteXMLFile,  the code that instantiates the tests is:

 surefireBooter.addTestSuite( 
"org.apache.maven.surefire.testng.TestNGXmlTestSuite",
                                                 new Object[]{file, 
testSourceDirectory.getAbsolutePath()} );

In contrast with when running without it, we have

surefireBooter.addTestSuite( 
"org.apache.maven.surefire.testng.TestNGDirectoryTestSuite", new Object[]{
                    testClassesDirectory, includes, excludes, groups, 
excludedGroups, Boolean.valueOf( parallel ),
                    new Integer( threadCount ), 
testSourceDirectory.getAbsolutePath()} );

I know that I can stipulate in testng.xml the groups to run, but what If I 
didnt and I did that in pom.xml, shouldn't the plugin be aware of that?


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