How I could use unit testing for catching multithreading bugs in my .NET applications? Is there any frameworks or libraries?
-
1Try this: ... stackoverflow.com/questions/12159/… or stackoverflow.com/questions/200402/… or .... Read the rules and FAQ before askingtryme– tryme2012-01-02 14:38:08 +00:00Commented Jan 2, 2012 at 14:38
-
Your link are four years old! May be something new thing to get ready to know?!weqew q– weqew q2012-01-02 14:45:28 +00:00Commented Jan 2, 2012 at 14:45
Add a comment
|
1 Answer
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.
4 Comments
weqew q
I see it, but it has version number only 0.1 and last update was at 2009... The project has been dead?
Mitch Wheat
Not sure when it was last updated: a colleague has used it with some good results.
weqew q
So, for example, you can't use visual studio 2010 with it. Only visual studio 2008...
Mitch Wheat
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.