> Hmm, you couldn't just enter the unqualified class name, and then it'd > match any package containing that class name? LIke "**/TestFooBar" > patternset pattern I think?
This isn't different to your "duplicated test match" scenario. Same class could be present in multiple packages -- what then? :) > Hmm, so globs are a convenient way to work around a JUnit limitation? I'm not talking about globs, I'm talking about the fact that every test needs a unique string description so if you want to re-run the same method multiple times in JUnit you need to differentiate them somehow. Then when you want to rerun your test and limit to that particular method you need to glob somehow because these descriptions no longer correspond to raw method names... eh, it's a longer discussion. > I also did not remember -Dtests.method=XXX was different.... I believe > you've explained this many times already ;) > > I'll [hopefully remember to] use -Dtests.method from now on! See the top of 'ant test-help': # # Test case filtering. -------------------------------------------- # # - 'tests.class' is a class-filtering shell-like glob pattern, # 'testcase' is an alias of "tests.class=*.${testcase}" # - 'tests.method' is a method-filtering glob pattern. # 'testmethod' is an alias of "tests.method=${testmethod}*" # You're right -- testmethod is a prefix match and testcase is a suffix/ class match. The runner only "understands" tests.class and tests.method -- if you're running from Eclipse or Idea, for example, only these will be picked up. Dawid --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org