Here is a skeleton which could be what you need.
ant test -Dtestclass=xy -Dtestmethod=xy : runs the testmethod in that test
class
ant test -Dtestclass=xy : runs all tests in that test class
ant test-Dtestmethod=xy : invalid as the class must be
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