Re: Re: Alternate @Category annotations

David Saff <[email protected]> Fri, 31 May 2013 11:04:48 -0400
Newsgroups gmane.comp.java.junit.user
Message-ID <CALrw-PyY8dguFXsjusmiFjGrivjJvrY60s6mpFRCmWyz6DvtYg@mail.gmail.com>
Sorry to come in late on the discussion.

I've generally been against the idea of meta-annotations.  I understand
that they can simplify things, but they also greatly raise the number of
classes that someone investigating a test failure for the first time has to
look at to understand exactly what's going on.

That said, I don't want to _ban_ having enough rope to hang oneself, I just
try to stay out of the rope-selling business.  So how can we allow teams
that would want such a thing to get it done?

https://github.com/junit-team/junit/pull/647 is very close to submission.
 This enables a standard syntax for giving JUnit a string that specifies a
filter.  With that in place, once the --filter syntax is supported by
Eclipse, surefire, etc, it should open up a path for third parties to
implement Filters in whatever form they wish, and users could just include
the third-party jar to get meta-annotation filtering or whatever else they
want.

   David


On Wed, May 29, 2013 at 4:20 AM, Malte Finsterwalder <
[email protected]> wrote:

> **
>
>
> I'm with Kristian: don't implement such a thing in surefire, but not in
> JUnit.
>
> I think the Suggestion that Dale proposed is great. But it is a JUnit
> Feature Request, not a surefire feature request.
>
> Greetings,
> Malte
>
>
> On 29 May 2013 08:15, <[email protected]> wrote:
>
> >
> >
> > --- In [email protected], Dale Emery <dale@...> wrote:
> > >> One possibility (that I'm toying with an another domain) is to use >a
> > meta-annotation like @CategoryAnnotation. Any annotation that is >itself
> > annotated with @CategoryAnnotation is a category annotation.
> >
> > I think this sounds great. But Shouldn't the @CategoryAnnotation itself
> be
> > part of Junit ? The filtering bit could well be delegated to various
> > runners..?
> >
> > Kristian
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/junit/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/junit/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/