deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Allen <>
Subject Re: basic decisions: test setup
Date Sat, 24 Dec 2011 17:22:35 GMT
On Sat, Dec 24, 2011 at 11:56, Jason Porter <> 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:

The point of using the Surefire feature is to avoid the need of having to
create test suites in Java.


Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message