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=21037>.
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=21037
Bug in junit report generation
Summary: Bug in junit report generation
Product: Ant
Version: 1.5
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Critical
Priority: Other
Component: Optional Tasks
AssignedTo: dev@ant.apache.org
ReportedBy: bbhangale@lastminute.com
Junit task creates XML files for print summary. It also outputs all the
System.out in that XML under <system-out> element as CDATA. If the output
itself have an XML having CDATA it complains while generating the html report.
Foolowing is the ant task used and the error which I am getting.
<target name="test">
<junit fork="true" printsummary="true"
errorproperty="JUnitErrorProperty" failureproperty="JUnitFailureProperty"
showoutput="false">
<formatter type="xml"/>
<batchtest>
<fileset dir="${build.classes.dir}">
<include
name="**/testcases/**/*Test.class"/>
<exclude
name="**/testcases/AllTests.class"/>
</fileset>
</batchtest>
<classpath>
<path refid="compile.classpath"/>
<pathelement path="${deployable.build.dir}"/>
</classpath>
</junit>
<echo>Creating JUnit report in html</echo>
<mkdir dir="${junit.reports}/html"/>
<junitreport todir="${junit.reports}">
<fileset dir=".">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${junit.reports}/html" />
</junitreport>
</target>
[junitreport] [Fatal Error] TEST-
com.lastminute.charter.testcases.util.MailSenderTest.xml:262:7: The element
type "system-out" must be terminated by the matching end-tag "</system-out>".
[junitreport] The file /home/bbhangal/build/webapps/charters/TEST-
com.lastminute.charter.testcases.util.MailSenderTest.xml is not a valid XML
document. It is possibly corrupted.
[junitreport] Using Xalan version: Xalan Java 2.4.D1
[junitreport] Transform time: 1078ms
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|