You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2006/05/01 08:45:41 UTC

[jira] Closed: (MSUREFIRE-85) Surefire does not run TestNG tests with JavaDoc annotations under Java 5

     [ http://jira.codehaus.org/browse/MSUREFIRE-85?page=all ]
     
Brett Porter closed MSUREFIRE-85:
---------------------------------

      Assign To: Brett Porter
     Resolution: Cannot Reproduce
    Fix Version:     (was: 2.2)

this certainly works for me both with the suite xml and without (if classes are named **/*Test)

> 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