Hi - I know it's possible to run just the unit tests in a single test class, or a specific test in a specific class. I'd like to be able to run all tests in a single Java package (e.g., all unit tests for org.apache.cassandra.auth). I see that I can list the classes individually in a text file and use 'ant testclasslist': I'd like something more direct.

Assuming there's not another way to do it and that others would find it useful, any preference as to the invocation style?

  ant testsome -Dtest.name=<packageName>.*   // Similar to running all tests in a class, just using a wildcard for the
// class name

  ant testsome -Dtest.package=<packageName>  // New, optional parameter for 'testsome': can ensure it's a
// mutually exclusive option from -Dtest.name [-Dtest.methods].

Open to pointers and better ideas! Thanks -- Joel.




Reply via email to