tags:

views:

327

answers:

2

Some of my mstest unit tests help detect multi-threading race conditions, and as such they are most useful when run many times in a row, but I only want to do this for specific test runs -- not all the time.

Is there a way to configure mstest (in the Test List Editor preferably) to run a test multiple times?

+1  A: 

Consider creating a test to spin off a couple of threads. The Test List won't allow you to have multiple entries for the same test. You could assign, however, the multi-threaded test to its own list and call it only when you want to run that particular test.

Colin Bowern
That's an interesting approach. Thanks.
Andrew Arnott
A: 

I guess the answer is no.

Andrew Arnott