Code:
[07:48:38][Step 5/7] &"X:\_tmp\NConsole\NCrunch.exe" Hermes.sln /o "X:\_tmp\NCResults" -NCrunchCacheStoragePath "X:\_tmp\NCCache" -WorkspaceBasePath "X:\_tmp\NcWc" /vs "2012" -ConsiderInconclusiveTestsAsPassing True -MaxNumberOfProcessingThreads 5 -GridServerReferencesForSolution "node2>AABBCC=" /TeamCityDisableTestNotRunFailureReporting -CPUCoresAssignedToNCrunch "0,1,2,3" -CPUCoresAssignedToVisualStudio "" -TestsToExecuteAutomatically "((DoesNotHaveCategory 'LongRunningTest' AND DoesNotHaveCategory 'HttpIntegrationTest' AND DoesNotHaveCategory 'SystemTimeModifyingTest') AND (HasNotBeenRun OR IsImpacted OR IsFailing OR FullNameMatchesRegex '\.SchemaOnDiskIsLatest$'))"
[07:48:38][Step 5/7]
[07:48:38][Step 5/7] NCrunch Console Tool v3.17.0.2
[07:48:38][Step 5/7] Copyright ¸ 2010-2018 Remco Software Ltd
[07:48:38][Step 5/7] Usage of this tool is permitted only under the terms described in License.rtf
...
[07:48:39][Step 5/7] [Core-7] CPU cores assigned to Visual Studio = '-TestsToExecuteAutomatically'
[07:48:39][Step 5/7] [Core-7] CPU cores assigned to NCrunch = '0,1,2,3'
...
[07:48:39][Step 5/7] [Core-7] Tests to execute automatically = '((DoesNotHaveCategory 'LongRunningTest' AND DoesNotHaveCategory 'HttpIntegrationTest' AND DoesNotHaveCategory 'SystemTimeModifyingTest') AND (HasNotBeenRun OR IsImpacted OR IsFailing OR FullNameMatchesRegex '\\.SchemaOnDiskIsLatest$'))'
[07:48:39]
(powershell build step)
1) Do I understand it correctly that I need to co-ordinate setting MaxNumberOfProcessingThreads, with CPUCoresAssignedToNCrunch ? I.e. -MaxNumberOfProcessingThreads should ideally be equal or lower to CPUCoresAssignedToNCrunch ?
2) Since this is a CI build agent, I don't want to assign any cores to NCrunch. But -CPUCoresAssignedToVisualStudio "" does not seem to work since it for some reason assigns "-TestsToExecuteAutomatically" to it?
3) Since I might have build agents with different amount of cores, is there a way I can assign "all" cares to NCrunch or should I then write "0,1,2,3,4,5,6,...,19" etc so NCrunch consumes all available cores (given no machine have more than 20 cores)?
Thanks.