Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
- Subject: Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
- From: Mike Schrag <email@hidden>
- Date: Sat, 5 Dec 2009 22:02:05 -0500
i ran into this in one of the wonder tests as well ... no idea what is causing it offhand, but i didn't really spend much time trying to figure it out, either.
On Dec 5, 2009, at 6:59 PM, Paul Hoadley wrote:
> Definitely the last time I will reply to myself:
>
> On 05/12/2009, at 10:01 PM, Paul Hoadley wrote:
>
>> 4. The suite will run and all tests pass _the first time_. If I hit the JUnit pane's "Rerun Test" button, though, it fails on subsequent runs in AddressTest.beforeAddressTest() at the line above calling ContactSet.createContactSet() with:
>
> It's actually worse than that: it will pass the first time, and then randomly pass or fail on subsequent runs. If I keep hitting "Rerun Test", I get an apparently random chain of passes and fails. While this certainly makes unit testing interesting, it's not ideal. :-)
>
>
> --
> Paul.
>
> w http://logicsquad.net/
> h http://paul.hoadley.name/
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden