Cannot run TestNG suites that contains other suites
---------------------------------------------------

                 Key: SUREFIRE-434
                 URL: http://jira.codehaus.org/browse/SUREFIRE-434
             Project: Maven Surefire
          Issue Type: Bug
          Components: TestNG support
    Affects Versions: 2.4
         Environment: Linux (k)ubuntu, Eclipse 3.3 /w TestNG plugin, TestNG 
5.1, Maven 2, Java 5
            Reporter: Daniel Brolund
            Priority: Critical
         Attachments: testng-bug.tar

When running suites containing suites for TestNG I get an error in maven:

org.apache.maven.surefire.booter.SurefireExecutionException: Error reading test 
suite; nested exception is org.xml.sax.SAXParseException: Element type 
"suite-files" must be declared.; nested exception is 
org.apache.maven.surefire.testset.TestSetFailedException: Error reading test 
suite; nested exception is org.xml.sax.SAXParseException: Element type 
"suite-files" must be declared.
org.apache.maven.surefire.testset.TestSetFailedException: Error reading test 
suite; nested exception is org.xml.sax.SAXParseException: Element type 
"suite-files" must be declared.
org.xml.sax.SAXParseException: Element type "suite-files" must be declared.
        at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
        at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)

See attached project for full stacktrace and working example.

Configuring the respective leaf suites and running them works fine in maven.

The same suite works fine with the TestNG plugin in Eclipse.

-- 
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

        

Reply via email to