1

How I could use unit testing for catching multithreading bugs in my .NET applications? Is there any frameworks or libraries?

2

1 Answer 1

3

You could try using CHESS:

CHESS: Find and Reproduce Heisenbugs in Concurrent Programs:

CHESS is a tool for finding and reproducing Heisenbugs in concurrent programs. CHESS repeatedly runs a concurrent test ensuring that every run takes a different interleaving. If an interleaving results in an error, CHESS can reproduce the interleaving for improved debugging. CHESS is available for both managed and native programs.

Sign up to request clarification or add additional context in comments.

4 Comments

I see it, but it has version number only 0.1 and last update was at 2009... The project has been dead?
Not sure when it was last updated: a colleague has used it with some good results.
So, for example, you can't use visual studio 2010 with it. Only visual studio 2008...
Yes, that's true. But it is easy to have two solutions, one for 2008 and one for 2010 (TFS supports this). And if it were to find subtle bugs that might remain hidden for months (or years), then the effort would be worthwhile.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.