For example, In my ant.xml
<target name="run"> <parallel > <junit printsummary="true"> <classpath refid="lib.classpath"/> <formatter type="xml" /> <batchtest fork="true" todir="/home/test/"> <fileset dir="/home/test/"> *<filename name="test.class" />* </fileset> </batchtest> </junit> <junit printsummary="true"> <classpath refid="lib.classpath"/> <formatter type="xml" /> <batchtest fork="true" todir="/home/test/"> <fileset dir="/home/test/"> *<filename name="test1.class" />* </fileset> </batchtest> </junit> </parallel> </target> I am adding two classes one by one inside the parallel tag. In this case, the JUnit test cases will run in parallel. But I want to give all the test cases inside one junit tag like <junit printsummary="true"> <classpath refid="lib.classpath"/> <formatter type="xml" /> <batchtest fork="true" todir="/home/test/"> <fileset dir="/home/test/"> *<filename name="*.class" />* </fileset> </batchtest> </junit> But batchset will run the classes one by one (sequential order). Is there any element to run the classes in parallel by getting all the classes at one time? Awaiting for your reply. -- View this message in context: http://ant.1045680.n5.nabble.com/How-to-run-all-the-junit-classes-in-parallel-instead-of-adding-one-by-one-tp5151096p5151096.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org