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 32973] New: - batchtest does not work well with custum formatter
Date Thu, 06 Jan 2005 20:21:39 GMT
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: dev@ant.apache.org
        ReportedBy: janssk1@hotmail.com


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


Mime
View raw message