6

A similar question was asked several years ago for VisualStudio2010 and never answered here:

How to parallelize a Data-Driven unit test in Visual Studio 2010?

I'm hoping that perhaps this functionality exists now in VS2012.

My situation is just like the one above, I have a data driven login test that runs the same test for multiple clients.

I've tried different threading solutions by triggering threads in ClassInitialize and TestInitialize, and waiting for all the tests to be done before cleaning up. Anything I've tried hasn't worked for these data driven tests.

I'm worried that attempting this is fundamentally wrong with how MSTest works with dd tests. Basically what I've found is that the next dataset will not run until TestCleanup is finished, and TestCleanup won't finish without the test being finished and the test results being recorded. So basically, the next test can't start until the previous test results are recorded. Is that true? Or is there a way to parallelize these using the MSTest framework?

Thanks!

mrfreester
  • 1,981
  • 2
  • 17
  • 36

0 Answers0