We are setuping our current solution on azure devops.
We have a big bunch of tests(some unit tests, some integrations tests) all running with NUnit.
We have configured the test like this:
- task: VSTest@2
timeoutInMinutes: 600
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: '.Test.dll'
searchFolder: '$(System.DefaultWorkingDirectory)/$(buildConfiguration)'
codeCoverageEnabled: false
platform: 'Any CPU'
configuration: '$(buildConfiguration)'
rerunFailedTests: false
pathtoCustomTestAdapters: 'Solution/packages/NUnit3TestAdapter.3.12.0/build/net35'
minimumExpectedTests: 1000
runInParallel: true
distributionBatchType: basedOnAssembly
failOnMinTestsNotRun: true
resultsFolder: 'testResults'
It's working, but it's taking ages(I'm speaking of 5+ hours), and I'm searching for way to speed things up.
One weird thing: Even with the runInParallel: true
, there is only one process(testhost) running, and consuming like 3-6% of the CPU.
What should I do to hurt my system CPU/hard disk/... and improve my test speeds?