Run all unit tests with Ant builder
I have a directory with a bunch of JUnit tests in my project. So far I have used separate target for each unit test. For example: <target name="MyTest"> <mkdir dir="${junit.output.dir}"/> <junit fork="yes" printsummary="withOutAndErr"> <formatter type="xml"/> <test name="tests.MyTest" todir="${junit.output.dir}"/> <classpath refid="MyProject.classpath"/> </junit> </target> This method requires me to change build file every time I add a Unit test. I want to able able to to run all unit tests in the project with a single Ant builder target. Is it possible to do? Yep it is, you need to look at