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=32973>.
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=32973

           Summary: batchtest does not work well with custum formatter
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am trying to use a custom formatter for tests that are run by the batchtest

        <junit fork="yes" errorProperty="test.failed" 
failureProperty="test.failed" forkmode="once">
            <classpath refid="test.classpath"/>
            <jvmarg value="-Djava.awt.headless=true"/>
            <formatter classname="my.Formatter" extension=".xml"/>
            <batchtest todir="${test.data.dir}" unless="testcase">
                <fileset dir="${test.class.dir}">
                    <include name="**/*Test.class"/>
                </fileset>
            </batchtest>
        </junit>

For some misterious reason, the extension specified in the formatter does not 
get used. All generated test files end with "null" instead of ".xml"

If i replace the batchtest tag with a single test tag, the correct extension is 
used :

            <test name="my.Test" todir="${test.data.dir}"/>

-- 
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