All tests I know are invoked via their source code. The Tutorial "Writing
Task"
in the manual [1] for example shows that.

But let�s have a look in <junit>s Manual [2] ...
Not tested, but maybe that will work:
  <junit>
    <classpath> <fileset ...includeYouTestJar /> </classpath>
    <test name="AllTests" todir="reports"/>
  </junit>
  <junitreport AsInTheExampleInTheManual [3] />

Jan

[1] http://ant.apache.org/manual/tutorial-writing-tasks.html#TestingTasks
[2] http://ant.apache.org/manual/OptionalTasks/junit.html
[3] http://ant.apache.org/manual/OptionalTasks/junitreport.html

> -----Urspr�ngliche Nachricht-----
> Von: blackwater dev [mailto:[EMAIL PROTECTED]
> Gesendet am: Mittwoch, 1. Dezember 2004 15:09
> An: Ant Users List
> Betreff: newbie-running junit task from jar file
> 
> Hello,
> 
> I took my junit classes and created a jar file which I want to run
> from ant.  How do I use the junit task and specify where the jar file
> lives and to kick off with the AllTests class?  I also need to use the
> html reporting also.  Most of the samples I see simply call the basic
> class.
> 
> Thanks!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to