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
This is just the second project I've integrated TypeMock with but I'm seeing my Nant task hang just after completion of my one test. I'm running version 3.6.1.0 and here is the nant script that is failing:

<loadtasks assembly="ToolsTypeMock.NETTypeMock.NAntBuild.dll" />
<typemockstart/>

<exec verbose="${IsVerboseEnabled}" program="${nunit.executable}" commandline="CorporateTypeMockTests.nunit /xml:binResults.Corillian.Corporate.PegasusTypeMock.xml ${test.nunit.flags}"/>

<typemockstop/>

CorporateTypeMockTests is currently a project with one dll with one test which the nant output interestingly shows success.
NANT Output:

[exec]
[loadtasks] Scanning assembly "TypeMock.NAntBuild" for extensions.
[exec] ***** CorporateBanking.Test.TypeMockTests.CCExecutive.AccountBalance
AlertPlugin_BadConfiguration1
[exec]
[exec] Tests run: 1, Failures: 0, Not run: 0, Time: 8.750 seconds
[exec]
[exec]

However at this point the script hangs indefinatly, when running with set TMOCK_VERBOSE=1 here is the last call:

PreCompiled:System.Text.RegularExpressions.CachedCodeEntry instance bool NoReferences()
System.Text.RegularExpressions.CachedCodeEntry instance bool NoReferences()
Sig: 20 00 02
IL_0 = ldarg.0
IL_1 = ldstr 0x7000E50E
IL_2 = ldstr 0x7000E61C
IL_3 = ldnull
IL_4 = call 0x0A00043C
IL_5 = brfalse.s 0x30
IL_6 = ldarg.0
IL_7 = ldstr 0x7000E50E
IL_8 = ldstr 0x7000E61C
IL_9 = ldnull
IL_10 = call 0x0A000440
IL_11 = dup
IL_12 = ldstr 0x7000E50E
IL_13 = ldstr 0x7000E61C
IL_14 = call 0x0A00043F
IL_15 = isinst 0x01000129
IL_16 = brtrue.s 0x07
IL_17 = unbox 0x010000A2
IL_18 = ldind.i1
IL_19 = ret
IL_20 = pop
Thin Header - too small (size=11,insersion=67) converting to Fat

Thanks for any help you could provide!
A.J. Supinski
asked by ASupinski (640 points)

2 Answers

0 votes
Hi,
Please tell me if you installed TypeMock to the ToolsTypeMock.NET directory or if you copied dll's to that directory.
If you did the later you will need to use the AutoDeploy feature.
answered by scott (32k points)
0 votes
Yes TypeMock is also installed on the machine the build is running on. However I beleieve I can put an end to this thread because it would seem some of the baseclass unmanaged code for the class I was testing is doing some change things to profilers, when additional mocking was made to isolate the test the hanging stopped.

Thanks for your response!!
A.J. Supinski
answered by ASupinski (640 points)
...