Grails unit tests failing

View: New views
6 Messages — Rating Filter:   Alert me  

Grails unit tests failing

by Dave Hallam-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm preparing a patch to be submitted and am adding some unit tests to the grails codebase (clone of master).  However, when I run ant test from the grails folder, I get 1007 errors out of 1659 - the majority are Hibernate and Taglib errors.

What do I need to do to get the existing tests to pass before I can add my own?

Many thanks,

Dave



Re: Grails unit tests failing

by Dave Hallam-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

An update on this - I took a fresh clone and ran the tests before editing anything in STS and I now only get 4 failures and 1 error - much healthier than before.

2009/10/28 Dave Hallam <dev@...>
Hi,

I'm preparing a patch to be submitted and am adding some unit tests to the grails codebase (clone of master).  However, when I run ant test from the grails folder, I get 1007 errors out of 1659 - the majority are Hibernate and Taglib errors.

What do I need to do to get the existing tests to pass before I can add my own?

Many thanks,

Dave




Re: Re: Grails unit tests failing

by Graeme Rocher-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tests were failing recently, but passing now:
http://hudson.grails.org/job/grails_core/

You might want to git pull again

On Thu, Oct 29, 2009 at 8:02 AM, Dave Hallam <dev@...> wrote:

> An update on this - I took a fresh clone and ran the tests before editing
> anything in STS and I now only get 4 failures and 1 error - much healthier
> than before.
>
> 2009/10/28 Dave Hallam <dev@...>
>>
>> Hi,
>>
>> I'm preparing a patch to be submitted and am adding some unit tests to the
>> grails codebase (clone of master).  However, when I run ant test from the
>> grails folder, I get 1007 errors out of 1659 - the majority are Hibernate
>> and Taglib errors.
>>
>> What do I need to do to get the existing tests to pass before I can add my
>> own?
>>
>> Many thanks,
>>
>> Dave
>>
>>
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - Weapons for the War on Java Complexity
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Re: Grails unit tests failing

by Peter Ledbrook :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Tests were failing recently, but passing now:
> http://hudson.grails.org/job/grails_core/
>
> You might want to git pull again

I find that the IvyDependencyManagerTests always fail locally for me
because the number of resolved dependencies differs from what is
expected. I haven't looked into why this is the case, though, but it's
worth people being aware of the discrepancy.

Cheers,

Peter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Re: Grails unit tests failing

by Graeme Rocher-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 29, 2009 at 10:00 AM, Peter Ledbrook <peter@...> wrote:
>> Tests were failing recently, but passing now:
>> http://hudson.grails.org/job/grails_core/
>>
>> You might want to git pull again
>
> I find that the IvyDependencyManagerTests always fail locally for me
> because the number of resolved dependencies differs from what is
> expected. I haven't looked into why this is the case, though, but it's
> worth people being aware of the discrepancy.

Probably because you have some transitive data in your ivy cache?

Cheers

>
> Cheers,
>
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - Weapons for the War on Java Complexity
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Re: Grails unit tests failing

by Peter Ledbrook :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> I find that the IvyDependencyManagerTests always fail locally for me
>> because the number of resolved dependencies differs from what is
>> expected. I haven't looked into why this is the case, though, but it's
>> worth people being aware of the discrepancy.
>
> Probably because you have some transitive data in your ivy cache?

Indeed, clearing the Ivy cache fixed the failing tests.

Thanks,

Peter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email