Search code examples
c#multithreadingvisual-studiospecflowspecrun

What is the maximum number of threads available in SpecRun


So, I am using SpecRun to run my tests in parallel.

In SpecRun, you have the property 'testThreadCount' which allows you to specify the number of threads.

But having looked at the Specflow documentation (along with everywhere else), I am not sure what the maximum is? [edit]


Solution

  • There is no maximum check, but depending on the test isolation mode, higher numbers make the overall test runtime worse.

    For Process test thread isolation I suggest you use (Number of Cores) - 1 as test thread count.

    For AppDomain and SharedAppDomain (since 1.4-rc002) you can use higher numbers.