Re: establishing logical test order?
"David Jeske" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jun 24, 2008 at 2:03 AM, Butler, Tony (London) <[email protected]> wrote: > Since you are already DI-aware and are not using it for the project > which prompted you to post here about ordering dependent tests then > presumably you deem DI not appropriate for this case, so we may as well > end the discussion here since it's turning into a DI-101 topic instead > of an nunit one. Not sure what gave you that idea. I'm using DI all over the place. When I say it's not appropriate for everything, I mean that for every dependency outside a class that I mock out and DI, there are three to five more that I don't. I'm with you on your mock mailserver, I think this discussion is all doubly-moot, because the "upstream dependencies" I was talking about in my original message are upstream dependencies with simpler parts of my own code. I don't care about all the downstream failures, since they are all caused by the upstream bug. I'd rather just see the most upstream bug in my code (the lowest-level code). That's why I order everything from simplest-to-most-complicated in order of dependencies. While this is a little degenerate about DI, it's helpful to me to know how people solve these problems with NUnit... When you have a bunch of tests, and you want to make sure you can find the simplest and earliest test that caused a problem (so you can fix that first), how do you do it? I use naming conventions to order the test results display (I don't care about execution order)... You can see an example in the screenshot attached.. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users
nunit_organized.png
(image/png, 109.3 KB) - not displayed