Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: "Zytan" <zytanlithium@xxxxxxxxx>
- Date: 2 Mar 2007 11:20:18 -0800
NUnit is specifically for frequent unit testing.
Ok great!
It doesn't happen when
you run your application - it happens when you run your tests. That
should happen (IMO) much more often than you start your application.
Ah, I see. Yes, unless you're like me and your application is the
unit tests. But, if my app wasn't, and the unit tests were in another
project, I can totally see why this test project would be run much
more often. It's the *reason* my app is run so often - for testing.
Running tests should be pretty much as frequent as building - and you
need to write your unit tests appropriately so they run quickly.
As i write code, I test it inside of my app by running it. So, if the
unit test project does the testing, then *that's* the code i'll be
running all the time.
Of course, you may decide to have different categories of unit tests,
some of which will take longer to run - but in general, tests which are
run most often are the most useful ones.
I agree. But, the longer tests have value in specific applications.
Such as stress testing multithreading apps. I've done that to confirm
bugs that should exist during mid-implementation, and confirm (within
reason) that they no longer exist once I've solve the problem.
I suppose this change of pace is what 'test driven development' is all
about? It means I've been doing it for a long time, just not quite on
track.
Zytan
.
- Follow-Ups:
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Jon Skeet [C# MVP]
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- References:
- TypeInitializationException / forcing all static c'tors to run on startup
- From: Zytan
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Jon Skeet [C# MVP]
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Zytan
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Jon Skeet [C# MVP]
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Zytan
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Zytan
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Jon Skeet [C# MVP]
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Zytan
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Jon Skeet [C# MVP]
- TypeInitializationException / forcing all static c'tors to run on startup
- Prev by Date: Re: Embedded Resources in an abstract class
- Next by Date: Re: Does C# have static local variables like C++?
- Previous by thread: Re: TypeInitializationException / forcing all static c'tors to run on startup
- Next by thread: Re: TypeInitializationException / forcing all static c'tors to run on startup
- Index(es):
Relevant Pages
|