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

http://issues.apache.org/bugzilla/show_bug.cgi?id=40457

           Summary: failureproperty not set by TestSuite
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


The junit task sets a property with the name specified by the failureproperty
attribute if a TestCase fails for any reason.

However if your test code extends TestSuite rather than TestCase the failure
property doesn't appear to get set even when the test fails.

e.g.

    <target name="junit">
        <junit failureproperty="failed">
            <formatter type="xml"/>
            <batchtest todir="${report}">
                <fileset dir="${src}">
                    <include name="test/extends/TestCase/fails/MyTest.java"/>
                </fileset>
            </batchtest>
        </junit>
    </target>

will set the property, "failed", but,

    <target name="junit">
        <junit failureproperty="failed">
            <formatter type="xml"/>
            <batchtest todir="${report}">
                <fileset dir="${src}">
                    <include name="test/extends/TestSuite/fails/MySuite.java"/>
                </fileset>
            </batchtest>
        </junit>
    </target>

will not set the property "failed".

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to