Re: SuiteAttribute, RowTest and IterativeTest
"Kelly Anderson" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Mar 11, 2008 at 3:36 PM, Charlie Poole <[email protected]> wrote: > Hi Kelly, > > > > So, if we are going to create any user-instances at load time, I > > > would rather they be some other object than the test fixture class. > > > > Ok, but no matter what user instances you created at load > > time, the could do stupid things, no? I don't think NUnit's > > users need to be especially protected from themeselves. I > > suspect it is a rather well educated group in general. > > True enough. My real preference is not to have any user objects > floating around at load time. :-) Ok, then to do Theory we would have to have some kind of two stage approach. The first Load stage would load the tests, the second stage would "load up" the Theories, then the third stage would execute the tests... now the second and third stages could be interleaved, if that's helpful, but I don't see a way to get around that, and support Theory as I understand it. There has to be a stage, for example, where you could generate random or semi-random values to pass into tests to do Agitator type things. This should not be in the Load stage, so it would have to be done later, right? > If we do start supporting load-time actions by user-created > objects we will need to surround those actions with all the > same protections that surround tests, so that exceptions > don't escape. I don't feel we need quite the same level of > protection from extensions, although we need some. No matter when you call user code, you should do this. I think it's good to wrap extensions too, because there is no guarantee that a "bad" extension like mine wouldn't call user code... :-) > It's not a question of how smart the users are - its that > NUnit is a framework that is supposed to be able to execute > bad code and survive! I totally agree with this... :-) -Kelly ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/