AW: How to run a single junit test method with ant

2013-05-11 Thread jhm
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

Re: How to run a single junit test method with ant

2013-05-11 Thread 肖谋
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