Originally posted by John Todd:
This target uses <batchtest> , so it will runs all the tests in this folder even I don't want to do so. Suppose I have many tests, tests that connects to the database, tests for parsing XML and so on. How to run a specific test file? or it is a best practice to run them all?
In a build script, one good practice is to always run all tests. Another good practice is to always run most tests (the fast ones) and run the rest (the slow ones) with a special target only when you feel that you're ready to check in your changes.
Typically, when I want to run just one test or all tests in one specific package, I do that from the
IDE.