I've run into an odd one while in the process of moving from the Gallio test runner (Gallio.Echo.exe) to the NUnit runner included in TeamCity (JetBrains.BuildServer.NUnitLauncher.exe): One test always throws an error.
If I remove the failing test, another test will fail. I keep removing the failing tests one by one and every time one other test will always throw an error.
I've tried using the TMockRunner:
TMockRunner.exe -target 4.0 JetBrains.BuildServer.NUnitLauncher.exe v4.0 x64 NUnit-2.5.10 AssemblyToTest.dll
...
Tests run: 498, Errors: 1, Failures: 0, Inconclusive: 0 Time: 29,390681 seconds
And I've tried using mocking_on.bat:
mocking_on.bat
JetBrains.BuildServer.NUnitLauncher.exe v4.0 x64 NUnit-2.5.10 AssemblyToTest.dll
...
Tests run: 498, Errors: 1, Failures: 0, Inconclusive: 0 Time: 29,390681 seconds
Running with nunit-console.exe works fine:
TMockRunner.exe -target 4.0 nunit-console.exe AssemblyToTest.dll
...
Tests run: 498, Errors: 0, Failures: 0, Inconclusive: 0, Time: 21,3462209 second
Running with Gallio.Echo.exe works fine:
Gallio.Echo.exe /runtime-version:v4.0.30319 /runner:TypeMock AssemblyToTest.dll
...
498 run, 498 passed, 0 failed, 0 inconclusive, 0 skipped
The error is always (with a different name for the failing mocked method as I keep on removing tests):
TypeMock.TypeMockException :
*** Cannot return a value for DatesDataManager.get_Instance() because no value was set. use recorder.Return().
*** Note: Cannot mock unsupported types from mscorlib assembly. See supported types here: https://www.typemock.com/mscorlib-types
at bh.c()
at TypeMock.RecordExpectations.Dispose()
How can I get JetBrains.BuildServer.NUnitLauncher.exe to work?
(Using TypeMock v6.2.5 and TeamCity is v7.0)