Slow Test Reload with NUnit when using Enterprise Library

Topics: Data Access Application Block, Exception Handling Application Block, General discussion, Logging Application Block
Dec 7, 2007 at 3:20 PM
I'm using Enterprise Library 3.1, .NET 2.0 and NUnit 2.4.3
My project is very small (just a proof of concept) and works fine. All my tests run OK.

When NUnit GUI starts, it loads quickly (less than 2 seconds), and when I run my first test (or set of tests) they run almost immediately (< 2 seconds). However, if I then re-run the tests NUnit spends up to 20 seconds "reloading".

If instead, I recompile my application (without closing down the GUI) and then re-run my test(s), NUnit manages to "reload" in less than 2 seconds.

My question is: What is slowing down the "reloading" of the tests?

PS The application blocks I am using are: Logging, Exception Handling and Data.
PPS Nothing is logged and no exceptions are thrown during my test execution. Additionally, I have removed all TraceListeners.