deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <john.d.am...@gmail.com>
Subject Re: basic decisions: test setup
Date Sat, 24 Dec 2011 17:18:15 GMT
What if we ask Aslak very nicely to create a class that combines the two?

On Sat, Dec 24, 2011 at 11:56 AM, Jason Porter <lightguard.jp@gmail.com>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.
>
> Sent from my iPhone
>
> On Dec 23, 2011, at 16:59, Mark Struberg <struberg@yahoo.de> wrote:
>
> > I give those surefire issues a try and push it if it looks good.
> >
> > LieGrue,
> > strub
> >
> >
> >
> > ----- Original Message -----
> >> From: Dan Allen <dan.j.allen@gmail.com>
> >> To: deltaspike-dev@incubator.apache.org
> >> Cc:
> >> Sent: Saturday, December 24, 2011 12:14 AM
> >> Subject: Re: basic decisions: test setup
> >>
> >> On Fri, Dec 23, 2011 at 13:09, Gerhard Petracek
> >> <gerhard.petracek@gmail.com>wrote:
> >>
> >>> i would suggest that we start with an approach which is  available
> right
> >>> now and to refactor the tests later on (as soon as the mentioned
> approach
> >>> is available in arquillian).
> >>>
> >>
> >> Speaking to that approach, you'll be happy to learn about some
> developments
> >> in surefire that will make that simpler. According to Aslak:
> >>
> >> Surefire 2.11 got support for JUnit Categories, so you
> >>> can configure this as filters on the surefire execution
> >>
> >>
> >>> groups=EE6_FullProfile
> >>> exludeGroups=EE6_WebProfile
> >>
> >>
> >>> In talks with Ondrej we have reported to feature requests on it,
> >>
> >>
> >>> http://jira.codehaus.org/browse/SUREFIRE-808
> >>> http://jira.codehaus.org/browse/SUREFIRE-809
> >>
> >>
> >>
> >> Basically allowing boolean expressions in the groups/excludeGroups
> >>> So you can say, groups=EJB&&(Security||Remote)
> >>
> >>
> >>> You no longer have to make your own Categories suites like we do
> >>> in weld-core tests, but rather surefire makes them 'on the fly'
> >>
> >>
> >> I'll be excited to get something that feels more natural in Arquillian,
> >> though. Then we should be able to switch to it rather easily. So
> categories
> >> is definitely the right way to start it seems.
> >>
> >> -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
> >>
>

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