ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Baker <simon.ba...@clearmoney.com>
Subject RE: JUnit BatchTest
Date Thu, 24 Oct 2002 11:23:11 GMT
The same problem seems to have been reported before but without and real
resolution or explanation - the thread was titled "1.5 b2 and JUnit" and was
logged back in September. 

-----Original Message-----
From: Marina Harrell [mailto:Marina.Harrell@sas.com]
Sent: 23 October 2002 16:40
To: Ant Users List
Subject: RE: JUnit BatchTest


Can you share that DynamicTestSuite code? It would be very useful.

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Wednesday, October 23, 2002 11:31 AM
To: 'Ant Users List'
Subject: RE: JUnit BatchTest


No, it is not AFAIK. It relies on files on disk, and cannot deal with files
(classes) inside a JAR. We do not use <batchtest>, but have written our own
'DynamicTestSuite' that finds tests based on similar pattern criteria (plus
additional ones) as <batchtest>, but takes a classpath-like searchpath
(which defaults to the classpath) which can include dirs and/or JARs.

Many such JUnit 'smart' test suite exist in the wild. --DD

-----Original Message-----
From: Tim Sheridan [mailto:tsheridan@intersectsoft.com] 
Sent: Wednesday, October 23, 2002 10:27 AM
To: 'Ant Users List'
Subject: JUnit BatchTest

I am compiling all our test code to a single JAR file of JUnit test cases.
Is there a way the nested <batchtest> tag in the JUnit task can take just a
JAR file? The following code runs the test cases just fine, but I would be
prefer to simply specify a single JAR file. Is it possible? Suggestions?
Thanks, Tim.

    <target name="run.ut">
        <mkdir dir="${ut.result.path}\summary"/>
        <mkdir dir="${ut.result.path}\reports"/>

        <junit fork="yes" maxmemory="256m" showoutput="true"
printsummary="yes">
            <classpath refid="test.code.path"/>
            <formatter type="xml"/>
            <batchtest fork="yes" todir="${ut.result.path}\reports">
                <fileset dir="${output.path}">
                    <include name="**/ut/*.class"/>
                </fileset>
            </batchtest>
        </junit>

        <junitreport todir="${ut.result.path}\reports">
            <fileset dir="${ut.result.path}\reports">
                <include name="TEST-*.xml"/>
            </fileset>
            <report format="frames" todir="${ut.result.path}\summary"/>
        </junitreport>
    </target>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


**********************************************************************
Confidentiality: this e-mail and any attachments may be confidential. If you are not the intended
recipient you should not read, copy, distribute, disclose or otherwise use the information
in this e-mail and any attachments. Please reply to this e-mail highlighting the error and
delete the e-mail and any attachments from your system.

Security Warning: please note that this e-mail has been created in the knowledge that Internet
e-mail is not a 100% secure communications medium. We suggest that you consider this when
e-mailing us.

Viruses: although we have taken steps to ensure that this e-mail and attachments are free
from any virus we advise that in keeping with good computing practice the recipients should
ensure that they are actually virus free.

Clear, Clear Money and the Clear logo are trade marks of Clear Money Limited and they should
not be used, nor should any part of the material in this e-mail be copied, without our prior
written permission. Clear Money Limited is a limited liability company incorporated in the
UK. Registered Office: 84-86 Regent Street, London. W1B 5RR. Telephone: 020 7025 6500. Fax:
020 7025 6501. Corporation No: 03873527. VAT No: 751 8550 22.
**********************************************************************

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message