I have a msbuild project like below, through which I am running unit tests under typemock isolation.
<PropertyGroup>
<NunitOutputCode>0</NunitOutputCode>
</PropertyGroup>
<ItemGroup>
<UnitTestAssemblies Include="$(PathOutputAssemblies)\*.UnitTests.dll"/>
</ItemGroup>
<TypeMock.MSBuild.TypeMockStart />
<Exec Command='"C:\program files (x86)\NUnit 2.5.8\bin\net-2.0\nunit-console.exe" /nologo /noshadow /labels "@(UnitTestAssemblies)" /exclude=SpecialEnvironmentNeeded,FailingToBeAddressed,NotApplicationTest,PerformanceTest'
WorkingDirectory="%(RootDir)%(Directory)"
ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="NunitOutputCode"/>
</Exec>
<TypeMock.MSBuild.TypeMockStop />
However, when I run this, the unit tests run and then the process just hangs, never returns. I see the output as below in the console when it is hung.
Tests run: 9, Errors: 0, Failures: 0, Inconclusive: 0, Time: 1.1281699 seconds
Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
This makes me to believe my tests are running fine, but the issue might be returning the exit code. Any idea what might be happening here?