Re: runtime skip of a testfixture
"Schnick, Michael" <[email protected]> Tue, 16 Sep 2008 09:12:49 +0200
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <BBFA6E2F6CA0A54A96755EB3353503D101407020@mandoki.europe.pc.cognex.com> |
Hi Sean, I think including an Assert.Fail() should be enough in the TestSetUp or TestFixtureSetup so that the test suite is not run. I'm using these in my tests as well so I can see if the preparations have actually been handled correctly. Best regards Michael Schnick Software Developer, Cognex Ltd, German Branch -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sean Dague Sent: Montag, 15. September 2008 23:21 To: [email protected] Subject: [Nunit-users] runtime skip of a testfixture Is there a way to throw some kind of exception (or other signal) during [Setup] so that the testfixture isn't run? I'd like to make some tests that won't run in every environment, but to opportunistically run them whenever possible, but not could the tests as fails if the environment isn't a match. This isn't as broad as Linux, Mono, or .NET-2, it's more about having a correctly configured database. Any pointers would be appreciated. -Sean -- __________________________________________________________________ Sean Dague Mid-Hudson Valley sean at dague dot net Linux Users Group http://dague.net http://mhvlug.org There is no silver bullet. Plus, werewolves make better neighbors than zombies, and they tend to keep the vampire population down. __________________________________________________________________ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/