There must be a bug then (I am running version .571). Rollback by itself (without the includesutd=true) at the fixture level did not roll anything back. Adding in the property assignment in the constructor did rollback everything in the fixture. Unless I am doing something wrong.
Thanks for the clarification. Phil Philip Japikse, MCSD.Net, MCDBA, CSM Principal Consultant Pinnacle Solutions, Inc <mailto:[email protected]> [email protected] <http://www.japikse.blogspot.com/> www.japikse.blogspot.com twitter/skimedic (513) 312-5664 From: [email protected] [mailto:[email protected]] On Behalf Of Jeff Brown Sent: Monday, December 29, 2008 12:08 AM To: [email protected] Subject: MbUnit Re: Rollback for a fixture Well, Rollback at the fixture level will rollback everything within the bounds of the fixture. However, unless IncludeSetUpAndTearDown is specified, it will not include the fixture setup and teardown. You will still need individual Rollback attributes on tests if you want to rollback between tests. On Sun, Dec 28, 2008 at 6:00 PM, Philip Japikse <[email protected]> wrote: Okay, so I did some more testing. Correct me if this is wrong: Rollback (by itself) at the Fixture level does nothing Rollback(IncludeSetUpAndTearDown=true) at the fixture level wraps the entire fixture in one transaction. So, you still must have Rollback at the Test level also to have the tests execute atomically in a transaction, the Rollback at the fixture level allows you to rollback Fixture Setup/Teardown actions only. Thanks! Phil Philip Japikse, MCSD.Net, MCDBA, CSM Principal Consultant Pinnacle Solutions, Inc [email protected] www.japikse.blogspot.com <http://www.japikse.blogspot.com/> twitter/skimedic (513) 312-5664 From: [email protected] [mailto:[email protected]] On Behalf Of Philip Japikse Sent: Sunday, December 28, 2008 8:11 PM To: [email protected] Subject: MbUnit Re: Rollback for a fixture Sweet. Worked like a champ. I tried that, but must not have applied the IncludeSetUpAndTearDown attribute. Gonna have to update my blog post to include that detail. Thanks! Phil Philip Japikse, MCSD.Net, MCDBA, CSM Principal Consultant Pinnacle Solutions, Inc [email protected] www.japikse.blogspot.com <http://www.japikse.blogspot.com/> twitter/skimedic (513) 312-5664 From: [email protected] [mailto:[email protected]] On Behalf Of Jeff Brown Sent: Sunday, December 28, 2008 7:56 PM To: [email protected] Subject: MbUnit Re: Rollback for a fixture Hmm... in that case try just applying [Rollback] to the fixture itself. Jeff. On Sun, Dec 28, 2008 at 4:39 PM, Phil Japikse <[email protected]> wrote: All, I see that I can Rollback and set (IncludeSetUpAndTearDown=true). Can this be done at the fixture level also? iow, have something like IncludeFixtureSetUpAndTearDown and an additional property? tia --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" 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/MbUnitUser?hl=en -~----------~----~----~----~------~----~------~--~---
