dariusdamalakas;10777 wrote:Good point - yes, we do use SetUpFixture. Sets up logging, and some other static properties. Do you think this would have an impact in certain situations?
It depends upon the behaviour you have coded in here, but I can tell you that if the code in a SetUpFixture fails, it can interrupt the NUnit invocation and prevent NCrunch from receiving data from tests inside the run, giving the error message you're receiving.
It's possible that you have logic in your SetUpFixture that is sequence dependent (i.e. depends on other tests run earlier in the process). Note that under NCrunch, a SetUpFixture can be executed multiple times per test process, because the engine will call into NUnit for each execution batch and each process can be re-used by NCrunch any number of times.
Under NUnit v2, NCrunch's handling of errors and results inside SetUpFixtures is not particularly good. This can make it quite hard to troubleshoot failure scenarios. You might want to look into setting up an exception trap inside the SetUpFixture so that if it blows up, you can be notified of it. Placing System.Diagnostics.Debugger.Launch(); inside the exception handler will allow you to get a debugger on the situation.