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
I was attempting to run my test dll in Icarus. Maybe I'm missing something, but when I attempt to run any tests involving typemock, I get this exception.

Exception
TypeMock.TypeMockException:
*** Typemock Isolator is not currently enabled.
To enable do one of the following:

* To run Typemock Isolator as part of an automated process you can:
- run tests via TMockRunner.exe command line tool
- use 'TypeMockStart' tasks for MSBuild or NAnt

* To work with Typemock Isolator inside Visual Studio.NET:
set Tools->Enable Typemock Isolator from within Visual Studio

For more information consult the documentation (see 'Running' topic)
at TypeMock.MockManager.Init(Boolean collectAllCalls)
at TypeMock.MockManager.Init()
etc...

Any ideas?

I'm using Gallio 3.0.5.546 inside of Icarus. I haven't tried running it through echo, but right now, that's not exactly useful for me. I know that Icarus is still pretty new, but this was working before with the old MBUnit GUI. I'm referencing the new typemock.dll when I compile the test DLL. The code is in VB. It's also the lastest version of typemock.

It could just be an issue of enabling typemock in Gallio/Icarus, but I'm having trouble even finding out how that works.
asked by howaldmg (1.9k points)

5 Answers

0 votes
Hi

You have to enable the Isolator environment variables in order run the tests.
To do that you can run Icarus through TMockRunner.exe from the command line.
example:
<PathToIsolatorInstallDir>TMockRunner.exe <PathToIcarus>Gallio.Icarus.exe

Than when the GUI is up you can run your test project with Isolator enabled.

On top of that Icarus has an integration with the Isolator
from Icarus menu: Tools -> Options -> Startup -> TypeMock
but when I checked it doesn't seem to work. :(
I'll look into this and get back to you with an answer.
answered by ohad (35.4k points)
0 votes
I tried running it through the command line before, but I had no luck. When I tried to run the tests, they immediately unloaded without actually running.

I just tried it with the tools menu, and that acted the same way.

Any ideas?
answered by howaldmg (1.9k points)
0 votes
Hi

This is strange.
Can you please post here the command line you used to run the tests?
Also please specify if you are running on 64 bit OS.
answered by ohad (35.4k points)
0 votes
"C:Program FilesTypemockIsolator.1TMockRunner.exe" "C:Program FilesGallioinGallio.Icarus.exe" is the command line I use.

I'm running 32-bit windows XP SP3
answered by howaldmg (1.9k points)
0 votes
Hi

Lets take it offline.
I'm sending you a mail so we can investigate it further.
answered by ohad (35.4k points)
...