ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21947] New: - Junit Task - Xml reporter don't work well
Date Mon, 28 Jul 2003 21:06:12 GMT
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: dev@ant.apache.org
        ReportedBy: lowfill@yahoo.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message