First, I have searched in stackoverflow, the following questions are related to mine, but not exactly what I wanted:
- How to run only specific JUnit tests in Ant?
- How to run JUnit test cases from the command line
- Use Ant for running program with command line arguments
Suppose I have more than 100 test cases: A1Test... A100Test. I can make bachtest
of junit in ant
to run all of them. But I only want to run, say, A50Test. How I config my build.xml
, so that I can run:
ant test A50Test
I don't want to create 100 targets for each of the test.