I am trying to run unit tests from build file using nunit-console-x86.exe. I am reading the dlls from a nunit project file which has 33 entries. On my system all the tests are running, but when the same build file is running through Jenkins, only 15 dlls are picked up and run.
I have observed that after a few mins the following error comes on the cmd prompt - system.outofmemoryexception' was thrown.
This is my build file:
<exec program="${ncover.exe}" failonerror="false">
<arg value="Run"/>
<arg value="--project=${ncover.project}"/>
<arg value="--buildId=${ncover.build.id}"/>
<arg value="--"/>
<arg value="..\tools\NUnit\nunit-console-x86.exe"/>
<arg value="TestProject.nunit"/>
<arg value="/domain=Multiple"/>
</exec>
NUnit project:
<NUnitProject>
<Settings activeconfig="Debug" />
<Config name="Debug"
configfile="TestA.dll.config"
binpathtype="Auto">
<assembly path="TestA.dll" />
<assembly path="TestB.dll" />
</Config>
<Config name="Release" binpathtype="Auto" />
</NUnitProject>