[ http://jira.codehaus.org/browse/MSUREFIRE-85?page=comments#action_64525 ]
Brett Porter commented on MSUREFIRE-85: --------------------------------------- No, I did that. {code:xml} <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite name="Suite1" verbose="1" > <test name="Nopackage" > <classes> <class name="NoPackageTest" /> </classes> </test> <test name="Regression1" > <groups> <run><include name="checkintest" /></run> </groups> <classes> <class name="test.sample.ParameterSample" /> </classes> </test> </suite> {code} Correctly ran ParameterSample. includes/excludes are not used when suiteXmlFiles is. > Surefire does not run TestNG tests with JavaDoc annotations under Java 5 > ------------------------------------------------------------------------- > > Key: MSUREFIRE-85 > URL: http://jira.codehaus.org/browse/MSUREFIRE-85 > Project: Maven 2.x Surefire Plugin > Type: Bug > Environment: Windows XP, Maven 2.0.3, Surefire plug-in, TestNG 4.7, Java 5 > Reporter: Andreas Guther > Assignee: Brett Porter > > > I have TestNG tests with Java 1.4 JavaDoc annotations. The tests are > executed with a testng.xml file. I need to be able to execute those tests > under Java 5. As it appears Surefire seems not to be able to recognize those > TestNG tests with Java 1.4 annotations and does not execute a single test > listed in the TestNG.xml test suite file. > Relevant parts of my configuration are as follows: > <dependency> > <groupId>org.testng</groupId> > <artifactId>testng</artifactId> > <version>4.7</version> > <scope>test</scope> > <classifier>jdk14</classifier> > </dependency> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.4</source> > <target>1.4</target> > </configuration> > </plugin> > <plugin> > <artifactId>maven-surefire-plugin</artifactId> > <configuration> > > <testFailureIgnore>true</testFailureIgnore> > <suiteXmlFiles> > > <suiteXmlFile>src/test/resources/testng-xml-export.xml</suiteXmlFile> > </suiteXmlFiles> > </configuration> > </plugin> > ... > <pluginRepositories> > <pluginRepository> > <id>apache.snapshots</id> > <url> > http://cvs.apache.org/maven-snapshot-repository</url> > </pluginRepository> > <pluginRepository> > <id>Maven Snapshots</id> > <url>http://snapshots.maven.codehaus.org/maven2/</url> > <snapshots> > <enabled>true</enabled> > </snapshots> > <releases> > <enabled>false</enabled> > </releases> > </pluginRepository> > </pluginRepositories> > testng.xml > <!DOCTYPE suite SYSTEM "testng-1.0.dtd" > > <suite name="XML Export" annotations="javadoc"> > <test name="Builder Test"> > <classes> > <class > name="mt.ztelligence.questionnaire.SurveyProjectXMlDataInjectorTestNg" /> > <class name="mt.ztelligence.questionnaire.xml.XmlExporterTestNg"/> > <class > name="mt.ztelligence.survey.util.SurveyBuilderDataExtractorTestNg"/> > </classes> > </test> > </suite> -- 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