You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/09/13 18:15:02 UTC
DO NOT REPLY [Bug 23150] -
JUnitTask does not mark timed out tests as failed when forked
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=23150>.
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=23150
JUnitTask does not mark timed out tests as failed when forked
ant@kruithof.xs4all.nl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From ant@kruithof.xs4all.nl 2003-09-13 16:15 -------
on both head and 1.5.4 it works for me.
Output with timeout
:
Buildfile: test.xml
all:
[junit] TEST Test2 FAILED (timeout)
BUILD SUCCESSFUL
Total time: 6 seconds
Output with normal error (increased timeout to after the moment the error occurs:
Buildfile: test.xml
all:
[junit] TEST Test2 FAILED
BUILD SUCCESSFUL
Total time: 12 seconds
build file used while trying to reproduce the fault:
<?xml version="1.0"?>
<project name="test" default="all">
<target name="all">
<junit fork="yes" timeout="5000">
<classpath>
<pathelement path="."/>
</classpath>
<test name="Test2" outfile="result">
<formatter type="xml"/>
</test>
</junit>
</target>
</project>
The resulting xml file also contains an error for the suite (both 1.5.4 and head):
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="1" failures="0" name="Test2" tests="0" time="0.0">
<properties></properties>
<testcase classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask$1"
name="unknown" time="0.011">
<error message="Timeout occurred"
type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError:
Timeout occurred
</error>
</testcase>
</testsuite>
Platform used trying to reproduce the report: RedHat 9 / jdk 1.4.2
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org