You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Søren Krogh Neigaard <So...@systematic.com> on 2010/05/20 08:49:51 UTC

Getting ant to run all junit tests in a jar file

Hi

I have a jar file with some compiled *.class junit tests in it, and I would like to get ant to execute all these tests. How do I do this? I am following this tutorial: http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html, however this tutorial runs *.java files. I have tried to modify it, but have failed to get it to work.

Med venlig hilsen / Kind regards 
Søren Krogh Neigaard


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


AW: Getting ant to run all junit tests in a jar file

Posted by "Knuplesch, Juergen" <Ju...@icongmbh.de>.
try this:

          <batchtest todir="${your.report.dir}">
              <zipfileset src="${your.testjar}">
                 <include name = "**/*Test.class"/>
              </zipfileset>
          </batchtest>



-----Ursprüngliche Nachricht-----
Von: Søren Krogh Neigaard [mailto:Soeren.Krogh.Neigaard@systematic.com] 
Gesendet: Donnerstag, 20. Mai 2010 08:50
An: user@ant.apache.org
Betreff: Getting ant to run all junit tests in a jar file

Hi

I have a jar file with some compiled *.class junit tests in it, and I would like to get ant to execute all these tests. How do I do this? I am following this tutorial: http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html, however this tutorial runs *.java files. I have tried to modify it, but have failed to get it to work.

Med venlig hilsen / Kind regards 
Søren Krogh Neigaard


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


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