stryker-mutator / stryker-net

Mutation testing for .NET core and .NET framework!
https://stryker-mutator.io
Apache License 2.0
1.77k stars 184 forks source link

Parallel setting #111

Closed richardwerkman closed 6 years ago

richardwerkman commented 6 years ago

The user should be able to define the number of parallel testruns. The default right now is the number of logical cores / 2.

dotnet stryker --parallel 2 
{
  "stryker-config": {
    "parallel": 2
  }
}

We should also explain clearly in the documentation what this setting does.

The number should be validated to be > 0 and be <= the number of logical cores.

nicojs commented 6 years ago

Can we keep it in sync with Stryker? It's called --maxConcurrentTestRunners there. The idea is that Stryker still can choose to do other stuff in parallel, so that's why it explicitly states "test runners". Also it's a max, so Stryker can choose to use less based on the nr of logical processors. This way it's save to check in a value to source control and you know for sure the configuration will work on machines of team members with less cores. Default value is infinity.

cmulder commented 6 years ago

I would like to take a look at this :)