Basic idea is
- specify the test to run via command line property (-Dtestcase=...)
- test-targets depends on two targets running a single test or the whole test
suite
- that two targets are conditional according to that property
Jan
> -Ursprüngliche Nachricht-
> Von: Matt Ben
Thanks for your reply. Perhaps I did not express my problem clearly, or may
not understand your solution.
My problem is : I have junit test class:
class TestService {
@Test
void test1() {}
@Test
void test2() {}
}
now I'd like to only test the "test2" with ant command line like this:
ant