ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Egli <egl...@post.ch>
Subject junit: possible to "batchtest" tests in .jar files ?
Date Wed, 04 Apr 2001 15:01:32 GMT
Hi

Does somebody know if its possible to define a batchtest tag
that doesn't search for the the testclasses in a directory
but in a .jar file (i.e. allTests.jar) ?

(i.e. with a special fileset ?)

<junit printsummary="yes" haltonfailure="yes">
       <classpath>
         <pathelement location="${build.tests}" />
         <pathelement path="${java.class.path}" />
       </classpath>

       <batchtest fork="yes" todir="${reports.tests}">
           <fileset dir="${src.tests}">
                <include name="**/*Test*.java" />
                <exclude name="**/AllTests.java" />
           </fileset>
       </batchtest>
</junit>

thanks for your answers...

Peter

-- 

                |                                     |
                | Peter Egli                          |
                | Die Schweizerische Post             |
                | Postfinance make.it PF22.1          |
                | Engehaldestrasse 37                 |
                | 3030 Bern                           |
                |                                     |
                | Tel  :031 338 0480                  |
                | Email:eglipe@nospam.post.ch         |
               /) (remove nospam for E-mail)          (\
              / ) URL  : http://www.post.ch           ( \
             ( (|_____________________________________ ) )  />
             (((\ \)  /,)                        / )  / //))/
             (\\\\ \_/ /                         \ \_/ /////
              \       /                           \       /
               \    _/                             \_    /
           ----/   /---------------------------------\   \-------
                            For a better world,
            this message is printed with 100% recycled pixels.
---------------------------------------------------------------------


Mime
View raw message