You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2011/01/19 22:01:58 UTC

[jira] Closed: (SUREFIRE-516) Definition of multiple Suite-Files not working

     [ http://jira.codehaus.org/browse/SUREFIRE-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold closed SUREFIRE-516.
---------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Backlog)
                   2.7.2
         Assignee: Kristian Rosenvold

Fixed (with test) in r1060988

> 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
>            Assignee: Kristian Rosenvold
>             Fix For: 2.7.2
>
>
>    <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