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
Hy,

I'm unable to run UnitTests with Typemock 6.0.6. I always get the following error:

Test method MockingTest.CalculatorTest.AddTest threw exception:
TypeMock.TypeMockException:
*** Typemock Isolator needs to be linked with Coverage Tool to run, to enable do one of the following:
1. link the Coverage tool through the Typemock Isolator Configuration
2. run tests via TMockRunner.exe -link
3. use TypeMockStart tasks for MSBuild or NAnt with Link
For more information consult the documentation (see Code Coverage with Typemock Isolator topic)

I'm using the test projects of VS2010.
I configured the link to the VS2010 profiler in the 'Isolator Configuration' and I enabled typemock within VS2010. But each mocked test failes with the error above.

For test purposes I'm running VS2010 as administrator, but it doesn't help.
asked by shiny (1.2k points)

7 Answers

0 votes
Hello,

Are you using any of the VS2010 profilers when you run your test? Are you using IntelliTrace or code coverage tool?

What happens when you unlink the profiler in the Configuration tool?
answered by igal (5.7k points)
0 votes
Hy,
When I unlink the profiler then everything is running.
I will be using IntelliTrace and TestImpact.
answered by shiny (1.2k points)
0 votes
Hi,

Sorry for the delay in replying.

You should only link with the profiler if you're using IntelliTrace in the "collect call information" mode, where a profiler is enabled. Otherwise you should work unlinked.

So if I understand your post correctly, when you unlinked, you managed to run your tests successfully, together with Test Impact?
answered by igal (5.7k points)
0 votes
Hy,

here we go:
- I tested with activated IntelliTrace and linked profiler => that works
- I tested with activated IntelliTrace and unlinked profiler => exception as in my first post
- I tested with deactivated IntelliTrace and unlinked profiler => that works
- I tested with deactivated IntelliTrace and linked profiler => exception as in my first post

So if I unterstand you right:
- Everytime I change or switch my testsettings (at least IntelliTrace) I also have to change the link/unlink profiler of Typemock? What's the reason for that?
- Are ther other known boundary conditions for new VS2010 features?
answered by shiny (1.2k points)
0 votes
Hi,

Unfortunately, for the time being, every time you change the IntelliTrace setting, you would have to manually link/unlink the profilers.

We are working on a way to detect this automatically.
answered by igal (5.7k points)
0 votes
Hy,
Is there an expected date for the next release this issue will be fixed? In the next major release at the beginning of the next year?
answered by shiny (1.2k points)
0 votes
Sorry, again, for the late reply.

There is currently no estimated date I can give you for this feature.
answered by igal (5.7k points)
...