DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21947>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21947

Junit Task - Xml reporter don't work well

           Summary: Junit Task - Xml reporter don't work well
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Optional Tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hello!
This is my task to run the tests

  <path id="classpath">
    <fileset dir="${lib.dir}" includes="*.jar"/>
        <pathelement location="${build.dir}/"/>
  </path>

(...)

<junit  fork="true" printsummary="yes" dir="${test.dir}">
                        <classpath refid="classpath"/>
                        <formatter type="plain"/>
                        <formatter type="xml"/> 
                                <test 
name="test.com.iurupari.dao.PIDAOFactoryTest" haltonfailure="no" 
todir="${test.dir}" />
                </junit>

when I tries to write de xml report ant shows the following message

test:
    [junit] Running test.com.iurupari.dao.PIDAOFactoryTest
    [junit] Exception in thread "main" java.lang.NullPointerException
    [junit]     at java.io.Writer.write(Writer.java:126)
    [junit]     at
org.apache.tools.ant.util.DOMElementWriter.write(DOMElementWriter.java:151)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:171)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:452)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:346)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.792 secnull
    [junit] TEST test.com.iurupari.dao.PIDAOFactoryTest FAILED

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to