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

Dan Fabulich closed SUREFIRE-434.
---------------------------------

    Resolution: Cannot Reproduce

I'm marking this bug "Cannot Reproduce" even though I can, in fact, reproduce 
the problem with the tar file you sent me.

The problem is that your tar file is configured to use TestNG 5.1.  5.1 didn't 
support the <suite-files> element.  If you change the version of TestNG in your 
pom to "5.7" it works like a charm.

> 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