I do it with one line in my build.xml: <test todir="${junit.results}" name="${testcase}" if="testcase"/> and a small change to the batchtest task: <batchtest todir="${junit.results}" unless="testcase">
Both of these in are my "test" target, so I just run ant with ant -Dtestcase=com.whatever.TestWhatever test Easy! And thanks to Erik's book for the tip. s -----Original Message----- From: Chris Reeves [mailto:[EMAIL PROTECTED] How do you set it up to run a single test on demand? I could set a different target for each test (painful) or use a command line param with -D (less painful but no idea).