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
0 votes
I am trying to run my tests with the latest build of everything (including NUnit 2.2.8) The problem I am having is NUnit-gui.exe will not start with mocking_on. If I run mocking_off it runs fine (but the tests fail because mocking is off). Run mocking_on and the GUI does not start (I see it in TaskManager, but it just disappears).


Same thing happens with mocking off and using TMockRunner.

In the application event log I see 436 of this:

.NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A05E2B3) (80131506)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Of course clicking on the link gives me this from Microsoft:
We're sorry 
There is no additional information about this issue in the Error and Event Log Messages or Knowledge Base databases at this time. You can use the links in the Support area to determine whether any additional information might be available elsewhere. 


Any thoughts?
[/code]
asked by echmyr (2.2k points)

5 Answers

0 votes
Hi
Can you send me the logs?
I'm sending you my address offline.
Please check your mail :shock:
answered by ohad (35.4k points)
0 votes
I have looked into this some more and found that is it not a problem with NUnit but with NCover. If I unlink NCover then NUnit will run fine with mocking on.

I have tried NCover version 1.5.2, 1.5.3, and 1.5.4.

Also, I can't seem to find the typemock log file.
answered by echmyr (2.2k points)
0 votes
Hi
To use TypeMock with NCover use the following steps:
1. Link TypeMock to NCover. This can be done in two ways:
Use TypeMock configuration GUI:
Open TypeMock Configuration. Start -> Programs -> TypeMock.NET -> TypeMock Configuration.
Go to the profilers tab.
Select NCover from the drop down list and click "Link with TypeMock" button.
Or you can use TMockRunner.exe comand line tool.
TMockRunner has a -link argument for this.
For example to run NCover with NUnit and TypeMock:
tmockRunner -link NCover nunit-console.exe test.dll

2. Do not run mocking_on.bat

3. Run your test through NCover.

Hope it helps. Please tell me if it solves your problem.
answered by ohad (35.4k points)
0 votes
I am experiencing the same problem. Whenever TypeMock links with NCover the process (either nunit-gui or nunit-console) bombs out early. Without linking to NCover it runs successfully.

I am using ncover 1.5.5.0, nunit 2.2.8.0, and typemock 3.6.0.0.

The command I am using is:

TMockRunner -link NCover -loglevel 9 nunit-console unittests.dll


The output of the logs is short and sweet so I'll post it all here.

First up is "TypeMock-nunit-console.exe-1.12.2006-9-49-22.out"

Logging program: C:Program FilesNUnit-Net-2.0 2.2.8in
unit-console.exe
Known namespace: nunit 
Known namespace: vstesthost.exe 
Known namespace: MbUnit 
Known namespace: TestDriven.TestRunner.dll



Secondly there is "LinkedProfilers-nunit-console.exe-1.12.2006-9-49-22.out"

Logging program: C:Program FilesNUnit-Net-2.0 2.2.8in
unit-console.exe
Cannot read EnvName0  => The system cannot find the file specified.

Reset Location: C:Program FilesNCoverCoverLib.dll 
Adding profiler: {6287B5F9-08A1-45E7-9498-B5B2E7B02995}
Loaded C:Program FilesNCoverCoverLib.dll 
Adding typemock profiler
Loaded C:Program FilesTypeMockTypeMock.NETMockWeaver.dll 
Target Runtime .NET 2.0
Initialize Profiler 0, Target Runtime .NET 2.0
Initialize Profiler 1, Target Runtime .NET 2.0
answered by bugmenot (140 points)
0 votes
Hi
I'm sending you my mail address offline. Please send your log files to this address.
answered by ohad (35.4k points)
...