You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Fabulich (JIRA)" <ji...@codehaus.org> on 2007/11/20 23:36:57 UTC
[jira] Closed: (SUREFIRE-177) Groups stipulated in the pom file get
ignored when using a suiteXMLFile
[ http://jira.codehaus.org/browse/SUREFIRE-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Fabulich closed SUREFIRE-177.
---------------------------------
Resolution: Won't Fix
This is by design; we can't contradict or override the settings in a suite XML file. In revision 596856 I've added more documentation to explain this situation.
> Groups stipulated in the pom file get ignored when using a suiteXMLFile
> -----------------------------------------------------------------------
>
> Key: SUREFIRE-177
> URL: http://jira.codehaus.org/browse/SUREFIRE-177
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Environment: JDK 1.5
> Reporter: Muhammad Alsebaey
> Fix For: 2.4
>
>
> 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