chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Hi. I'm running a series of unit tests via TMockRunner.

On one machine, a Windows Server 2003 machine that includes NCover 3.1.4 (I've linked NCover using Isolator Configuration), the TMockRunner hangs.

On another machine, a Windows XP machine, the tests run just fine. Both machines have the same versions of .NET and Isolator installed.

Additionally the Unit Tests are run via TeamCity's NUnitLauncher (http://www.jetbrains.com/teamcity/) 4.0.1, specifying in NUnitLauncher's parameters that .NET 2.0 should be used.

Now, I've had TypeMock log and I get this:

On Windows 2003 machine, build hangs:

Logging program: C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe
Cannot read EnvName0 => The system cannot find the file specified.

Reset Location: C:\PROGRA~1\NCover\NC54F4~1.DLL
Adding profiler: {9721F7EB-5F92-447c-9F75-79278052B7BA}
Loaded C:\PROGRA~1\NCover\NC54F4~1.DLL
Adding typemock profiler
Loaded C:\Program Files\Typemock\Isolator\5.3\x86\MockWeaver.dll
Target Runtime .NET 1.1
Initialize Profiler 0, Target Runtime .NET 1.1
Initialize Profiler 1, Target Runtime .NET 1.1


On the Windows XP machine, tests run:

Logging program: C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe
Cannot read EnvName0 => The system cannot find the file specified.

Cannot read ResetCLSID => The system cannot find the file specified.

Adding typemock profiler
Loaded C:\Program Files\Typemock\Isolator\5.3\x86\MockWeaver.dll
Target Runtime .NET 2.0
Initialize Profiler 0, Target Runtime .NET 2.0


This suggests (at least to me) that for some reason on the Windows Server 2003 machine that TMockRunner.exe is trying to run under .NET 1.1, which Isolator 5.3 is not compatible with; furthermore on the Windows XP machine the same command (it's scripted, we can repeat it exactly in the different environments) runs under .NET 2.0, and doesn't hang.

I tried passing the "-target 2.0" switch to TMockRunner.exe, but this caused an unhandled exception to be thrown, in both environments.

I'd be grateful if anyone has any suggestions?

Ta,

W.
asked by WWilson (600 points)

1 Answer

0 votes
Hi,

This is an issue on Windows Server 2003 when executing Nunit tests using TeamCity tests launcher. The tests process is forced to execute in .Net 1.1 which is not supported in this version of Isolator.

As a workaround tests can be executed using Nunit runner instead of TeamCity launcher.

Best Regards,
Elisha
Typemock support team
answered by Elisha (12k points)
...