Following the guide mentionned here: Using MSTest with F# I managed to successfully run my unit tests.
I was wondering if anyone had tried and successfully managed to run tests in parallel?
How to run unit tests (MSTest) in parallel?
Thanks!
edit:
So I ended up deleting all solution items, removing the C# test project cleaned solution.
Readded a new C# test project with Local.testsettings (I had Debug.testsettings and Release.testsettings – adding Local.testsettings manually hadn’t fixed the problem). Fixed – running 5 tests in parallel.
Yes, the composition of Using MSTest with F# and How to run unit tests (MSTest) in parallel? allows to run up to 5 F#-written local unit tests in parallel with VS2010/mstest on a multi-core box. The screenshot below shows
TestMethod2()andTestMethod3()are running in parallel, whileTestMethod4()has already being passed, andTestMethod1()is still pending.Environment is VS2010 Premium/no SP1 running on 16-core box under Win2008R2;
parallelTestCountattribute of<Execution>element inLocal.testsettingsis set to2:Non-scaled version of the screenshot image can be found here
Good luck with “native” VS/mstest F# unit testing! 🙂