maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Höhmann (JIRA) <j...@codehaus.org>
Subject [jira] Created: (SUREFIRE-516) Definition of multiple Suite-Files not working
Date Mon, 18 Aug 2008 13:19:27 GMT
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

       

Mime
View raw message