You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Chris Adams <ch...@edatasource.com> on 2012/08/24 22:07:23 UTC

Buildr + JUnit Annotations

Hello,

I'm not sure what I'm doing wrong. But, I have setup a new version of Buildr on a new macbook and suddenly buildr is ignoring my junit annotations.  I"m assuming it must be loading an old version of junit, but I'm not sure how that would be or what to do to fix it.

Any ideas?

Thanks.

- Chris

Re: Buildr + JUnit Annotations

Posted by Alex Boisvert <al...@gmail.com>.
Good to know and glad you got it working!

On Fri, Aug 24, 2012 at 2:19 PM, Chris Adams <ch...@edatasource.com> wrote:

> As a follow-up: I figured out what was happening.
> One our developers had mixed JUnit 3 and JUnit 4 within the same class and
> JUnit 4 seems to ignore annotations in that case.
>
> Thanks again for your help, Alex.
>
> On Aug 24, 2012, at 3:48 PM, Alex Boisvert wrote:
>
> > Curious... the following works just fine for me:
> > https://gist.github.com/3455452
> >
> > Does it work for you?
> >
> > On Fri, Aug 24, 2012 at 1:07 PM, Chris Adams <ch...@edatasource.com>
> wrote:
> >
> >> Hello,
> >>
> >> I'm not sure what I'm doing wrong. But, I have setup a new version of
> >> Buildr on a new macbook and suddenly buildr is ignoring my junit
> >> annotations.  I"m assuming it must be loading an old version of junit,
> but
> >> I'm not sure how that would be or what to do to fix it.
> >>
> >> Any ideas?
> >>
> >> Thanks.
> >>
> >> - Chris
>
>

Re: Buildr + JUnit Annotations

Posted by Chris Adams <ch...@edatasource.com>.
As a follow-up: I figured out what was happening. 
One our developers had mixed JUnit 3 and JUnit 4 within the same class and JUnit 4 seems to ignore annotations in that case.

Thanks again for your help, Alex.

On Aug 24, 2012, at 3:48 PM, Alex Boisvert wrote:

> Curious... the following works just fine for me:
> https://gist.github.com/3455452
> 
> Does it work for you?
> 
> On Fri, Aug 24, 2012 at 1:07 PM, Chris Adams <ch...@edatasource.com> wrote:
> 
>> Hello,
>> 
>> I'm not sure what I'm doing wrong. But, I have setup a new version of
>> Buildr on a new macbook and suddenly buildr is ignoring my junit
>> annotations.  I"m assuming it must be loading an old version of junit, but
>> I'm not sure how that would be or what to do to fix it.
>> 
>> Any ideas?
>> 
>> Thanks.
>> 
>> - Chris


Re: Buildr + JUnit Annotations

Posted by Chris Adams <ch...@edatasource.com>.
Odd… yeah, that does work.  I wonder if we're somehow adding an old version of junit onto the classpath.  
I'll explore our build environment, as it definitely does not seem to be an issue with buildr.

Thanks, Alex.

On Aug 24, 2012, at 3:48 PM, Alex Boisvert wrote:

> Curious... the following works just fine for me:
> https://gist.github.com/3455452
> 
> Does it work for you?
> 
> On Fri, Aug 24, 2012 at 1:07 PM, Chris Adams <ch...@edatasource.com> wrote:
> 
>> Hello,
>> 
>> I'm not sure what I'm doing wrong. But, I have setup a new version of
>> Buildr on a new macbook and suddenly buildr is ignoring my junit
>> annotations.  I"m assuming it must be loading an old version of junit, but
>> I'm not sure how that would be or what to do to fix it.
>> 
>> Any ideas?
>> 
>> Thanks.
>> 
>> - Chris


Re: Buildr + JUnit Annotations

Posted by Alex Boisvert <al...@gmail.com>.
Curious... the following works just fine for me:
https://gist.github.com/3455452

Does it work for you?

On Fri, Aug 24, 2012 at 1:07 PM, Chris Adams <ch...@edatasource.com> wrote:

> Hello,
>
> I'm not sure what I'm doing wrong. But, I have setup a new version of
> Buildr on a new macbook and suddenly buildr is ignoring my junit
> annotations.  I"m assuming it must be loading an old version of junit, but
> I'm not sure how that would be or what to do to fix it.
>
> Any ideas?
>
> Thanks.
>
> - Chris