[
http://jira.codehaus.org/browse/SUREFIRE-231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter moved MSUREFIRE-85 to SUREFIRE-231:
------------------------------------------------
Key: SUREFIRE-231 (was: MSUREFIRE-85)
Project: Maven Surefire (was: Maven 2.x Surefire Plugin)
> Surefire does not run TestNG tests with JavaDoc annotations under Java 5
> -------------------------------------------------------------------------
>
> Key: SUREFIRE-231
> URL: http://jira.codehaus.org/browse/SUREFIRE-231
> Project: Maven Surefire
> Issue Type: Bug
> Environment: Windows XP, Maven 2.0.3, Surefire plug-in, TestNG 4.7,
> Java 5
> Reporter: Andreas Guther
> Assigned To: Brett Porter
> Attachments: my-app.zip
>
>
> 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