Hi,

After updating my pom to TestNG 5.7, <suite-files> works for me now.
http://jira.codehaus.org/browse/SUREFIRE-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel


JIRA [EMAIL PROTECTED] wrote:
> 
> Definition of multiple Suite-Files not working
> ----------------------------------------------
> 
>                  Key: SUREFIRE-516
>                  URL: http://jira.codehaus.org/browse/SUREFIRE-516
>              Project: Maven Surefire
>           Issue Type: Bug
>           Components: TestNG support
>     Affects Versions: 2.4.2
>          Environment: maven 2.0.9
> 
>             Reporter: Andreas Höhmann
> 
> 
>    <plugins>
>       <plugin>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <configuration>
>           <suiteXmlFiles>
>            
> <suiteXmlFile>/src/test/resources/Testsuite1.xml</suiteXmlFile>
>            
> <suiteXmlFile>/src/test/resources/Testsuite2.xml</suiteXmlFile>
>            
> <suiteXmlFile>/src/test/resources/Testsuite3.xml</suiteXmlFile>
>           </suiteXmlFiles>
>         </configuration>
>       </plugin>
>     </plugins>
> 
> Will raise the error
> 
> [INFO] Surefire report directory:
> d:\ws_sid\spice-sid\sid-base\sid-base-knowledgebase\target\surefire-reports
> org.apache.maven.surefire.booter.SurefireExecutionException: Suite file
> d:\ws_sid\spice-sid\sid-base\sid-base-knowledgeb
> ase\src\test\resources\Testsuite1.xmld:\ws_sid\spice-sid\sid-base\sid-base-knowledgebase\src\test\resources\Testsuite2.xml
>  
> is not a valid file; nested exception is
> org.apache.maven.surefire.testset.TestSetFailedException: Suite file d:
> \ws_sid\spice-sid\sid-base\sid-base-knowledgebase\src\test\resources\Testsuite1.xmld:\ws_sid\spice-sid\sid-base\sid-ba
> se-knowledgebase\src\test\resources\Testsuite2.xml is not a valid file
> org.apache.maven.surefire.testset.TestSetFailedException: Suite file
> d:\ws_sid\spice-sid\sid-base\sid-base-knowledgebase
> \src\test\resources\Testsuite1.xmld:\ws_sid\spice-sid\sid-base\sid-base-knowledgebase\src\test\resources\Testsuite2.xml
> is not a valid file
>         at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(TestNGXmlTestSuite.java:129)
>         at
> org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
> 
> Workaround (put a ',' behind every suiteXmlFile):
>    <plugins>
>       <plugin>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <configuration>
>           <suiteXmlFiles>
>            
> <suiteXmlFile>/src/test/resources/Testsuite1.xml,</suiteXmlFile>
>            
> <suiteXmlFile>/src/test/resources/Testsuite2.xml,</suiteXmlFile>
>            
> <suiteXmlFile>/src/test/resources/Testsuite3.xml,</suiteXmlFile>
>           </suiteXmlFiles>
>         </configuration>
>       </plugin>
>     </plugins>
> 
> 
> -- 
> 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
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-jira--Created%3A-%28SUREFIRE-516%29-Definition-of-multiple-Suite-Files-not-working-tp19031598p19060344.html
Sent from the Maven - Issues mailing list archive at Nabble.com.

Reply via email to