On Sat, Dec 24, 2011 at 11:56, Jason Porter <[email protected]> wrote:
> I just some digging, I think we'll have to stick with our original idea of > separating via package because JUnit won't accept multiple @RunWith > annotations, and oddly enough there is no combined runner you can use. > > Categories requires @RunWith(Categories.class) and we're already using > Arquillian so that won't fly. > I think you missed the tip that Aslak raised. You don't need to use @RunWith(Categories.class) to do category-based runs. Surefire now supports the creation of suites in the plugin configuration. If you do want to use @RunWith(Categories.class), then you put in on a test suite (an otherwise empty class). Then your individual tests with @RunWith(Arquillian.class) still work. Here's the syntax for the suite class: http://stackoverflow.com/questions/2176570/how-to-run-all-tests-belonging-to-a-certain-category-in-junit-4 The point of using the Surefire feature is to avoid the need of having to create test suites in Java. -Dan -- Dan Allen Principal Software Engineer, Red Hat | Author of Seam in Action Registered Linux User #231597 http://google.com/profiles/dan.j.allen http://mojavelinux.com http://mojavelinux.com/seaminaction
