Search code examples
multithreadingunit-testingnunit

best way to run multi-threaded nunit tests


I currently trying to find a solution, how to ensure that a test fails if an exception occurs in a thread which is spawn by the test method.

I DON'T want to start a discussion about more than one thread in a unit test. => "unit test".Replace("unit","integration");

I already read a lot of threads in several forums, I know about CrossThreadTestRunner, but I'm searching for a solution whichs integrates into nunit, and does not require to rewrite a lot of tests.


Solution

  • I solved the problem by creating an addin for nunit, which "installs" an ITestDecorator.