Hmm, it occurred to me that, while what I described might work for methods specified on the command line, IIUC, it won't work for methods not specified on the command line. It seems the best way to do what I want is to create a Suite, call setFilter with the user-speficied Filters, create a Request, then call Suite.run on the Request. Does this sound right?
Thanks, Noel On Wed, Jan 4, 2012 at 17:29, Noel Yap <[email protected]> wrote: > I'd like to extend JUnitTestRunner to allow specification of JUnit > Filters. This would allow, for example, tests to be filtered by Category. > > It looks like all I would need to do is to create a Description from the > test class (or test class and method name) and annotations then pass it > through a series of user-specified Filters. What objections might there be > by adding such a feature? Are there any gotchas with the approach I > described? > > Thanks, > Noel >
