The threadstatic attribute would make a great enhancement to the published version of RM.
I could always follow Tim's lead and modify the source and use my own custom build of RM but I would prefer to use a 'stable' published build of RM that includes this enhancement. So Stephen, throwing down the gauntlet here :), when you say 'catch up to the multi-core universe', do you intend to set a good example and release a new stable multithread-safe RM version soon? Thanks On Apr 25, 3:59 pm, Stephen Bohlen <[email protected]> wrote: > haha -- ok, that's easy enough :) > > re: NSB testing infrastructure having issues running multi-threaded, this is > a pretty common area of pain in general re: unit testing tools, components, > etc -- many/most appear to assume tests run in a single-threaded manner so > I'm not all that surprised by this (anymore). Its going to take time for > the ecosystem of test-support tools, fwks, etc. to catch up to the > multi-core universe we now want to live/work in. > > Thanks again, > > Steve Bohlen > [email protected]http://blog.unhandled-exceptions.comhttp://twitter.com/sbohlen > > On Mon, Apr 25, 2011 at 10:50 AM, Tim Haughton <[email protected]>wrote: > > > > > > > > > In MockRepository, add the ThreadStatic attribute to generatorMap and > > lastRepository. Job done :) > > > We will probably have to abort multithreaded tests anyway partly because of > > the out of memory issue on x86 machines, and also because the NServiceBus > > testing framework also goes to pieces in a multi > > threaded environment :) > > > Tim > > > On 25 April 2011 15:16, Stephen Bohlen <[email protected]> wrote: > > >> Interesting; I'd be interested in seeing this 'modified' version of > >> thread-safe RM if you care to share :) Perhaps we can fold it back into > >> the > >> trunk (or at least look to it as a starting point for addressing this > >> issue). > > >> Thanks, > > >> Steve Bohlen > >> [email protected] > >>http://blog.unhandled-exceptions.com > >>http://twitter.com/sbohlen > > >> On Mon, Apr 25, 2011 at 10:05 AM, Tim Haughton > >> <[email protected]>wrote: > > >>> Hi Steve, RM falls over if you enable the VS2010 test runner to run in > >>> multiple threads, RM was obviously not designed with thread safety in > >>> mind. > >>> That was the first issue, so we currently run a modified RM to add thread > >>> safety. > > >>> We also had an issue with running out of memory in tests (we have around > >>> 2500 with most tests using at least some mocks/stubs). I suspect this is > >>> because RM "leaks" assemblies when it dynamically creates the proxies, but > >>> that's just a guess. I seemed to get around this by enabling the VS2010 > >>> test > >>> runner to run in native x64 on supporting processors. This seems to have > >>> fixed, or at least postponed the issue. > > >>> Tim > > >>> On 25 April 2011 13:15, Stephen Bohlen <[email protected]> wrote: > > >>>> Tim: > > >>>> Does this imply that you are having issues w RM *other* than > >>>> .net4-related? > > >>>> -Steve B. > >>>> ------------------------------ > >>>> *From: * Tim Haughton <[email protected]> > >>>> *Sender: * [email protected] > >>>> *Date: *Mon, 25 Apr 2011 11:06:04 +0100 > >>>> *To: *<[email protected]> > >>>> *ReplyTo: * [email protected] > >>>> *Subject: *Re: [RhinoMocks] Re: Plans for .NET Framework 4.0 > > >>>> We're using it on a massive .Net 4project. > > >>>> The only issues we have aren't related the the framework. > > >>>> Tim > > >>>> On 24 April 2011 12:47, bill richards > >>>> <[email protected]>wrote: > > >>>>> I've used Rhino Mocks on a couple of .Net 4.0 projects since February > >>>>> last year (2010) ... no issues, no bugs. > > >>>>> On Apr 22, 6:28 pm, joel <[email protected]> wrote: > >>>>> > My team is investigating Rhino Mocks to determine if it will work for > >>>>> > us as a mock framework in our development environment. Two questions > >>>>> > came up that I hoped you would be able to answer: > > >>>>> > 1) Will Rhino Mocks support version 4.0 of the .NET Framework? > > >>>>> > 2) Is there someone actively developing and supporting Rhino Mocks? > > >>>>> -- > >>>>> You received this message because you are subscribed to the Google > >>>>> Groups "Rhino.Mocks" group. > >>>>> To post to this group, send email to [email protected]. > >>>>> To unsubscribe from this group, send email to > >>>>> [email protected]. > >>>>> For more options, visit this group at > >>>>>http://groups.google.com/group/rhinomocks?hl=en. > > >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups "Rhino.Mocks" group. > >>>> To post to this group, send email to [email protected]. > >>>> To unsubscribe from this group, send email to > >>>> [email protected]. > >>>> For more options, visit this group at > >>>>http://groups.google.com/group/rhinomocks?hl=en. > > >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups "Rhino.Mocks" group. > >>>> To post to this group, send email to [email protected]. > >>>> To unsubscribe from this group, send email to > >>>> [email protected]. > >>>> For more options, visit this group at > >>>>http://groups.google.com/group/rhinomocks?hl=en. > > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "Rhino.Mocks" group. > >>> To post to this group, send email to [email protected]. > >>> To unsubscribe from this group, send email to > >>> [email protected]. > >>> For more options, visit this group at > >>>http://groups.google.com/group/rhinomocks?hl=en. > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Rhino.Mocks" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]. > >> For more options, visit this group at > >>http://groups.google.com/group/rhinomocks?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Rhino.Mocks" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/rhinomocks?hl=en. -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
