Google Groups Home
Help | Sign in
Message from discussion General Question on using mocks related to failing tests.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
John Morales  
View profile
 More options Mar 15 2007, 11:36 am
From: "John Morales" <jmora...@gmail.com>
Date: Thu, 15 Mar 2007 11:36:29 -0400
Local: Thurs, Mar 15 2007 11:36 am
Subject: Re: General Question on using mocks related to failing tests.

2.6.0.43183

Don't get me wrong the tests are still fast when creating the mocks in every
test. Its just super fast relatively if you create the mock in the
testfixture setup and just call BackToRecord in setup.

Is this approach supported?

On 3/15/07, Ayende Rahien <aye...@ayende.com> wrote:

> What version of rhino mocks are you using?
> You definitely should not get a slow down because of Rhino Mocks.
> How much mock setup do you have?

> On 3/15/07, John Morales <jmora...@gmail.com> wrote:

> > Hi Ayende,

> > Attached is a sample project if you need to understand what i'm
> > referring to. The problem we are seeing using Rhino Mocks is that we call
> > verifyall on all our tests, what we are noticing is that if one test fails,
> > all tests that run after it fails if they use the same mock even though
> > running individually they pass. What we normally do is create all the mocks
> > in the testfixturesetup because creating the mocks adhoc in every test is
> > dramatically slower.  Is this the correct way of using RM?

> > If you look at the attached project running the testfixture entirely
> > both tests fail. If you run the second test in the class though it passes,
> > even though the test is independent of the first one. Note if we remove the
> > verifyall from the teardown it works as desired. Should we not use
> > VerifyAll? or is this fixed in 3.0?

> > Any help would be appreciated. If it is a bug and you would like me to
> > look into it I can.

> > --
> > John Morales
> > http://shortersigs.com/5008XVFPDHMK

--
John Morales
http://shortersigs.com/5008XVFPDHMK

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google