Hi there, I'm trying to profile a very slow unit test using Visual Studio 2015 Enterprise, but this unit test uses JustMock.
When I try to profile the test, it returns with the following exception:
"Telerik.JustMock.Core.ElevatedMockingException:
Cannot mock 'ActuIT.Futurama.Config.Settings'. The profiler must be enabled to
mock, arrange or execute the specified target.
Detected
active third-party profilers:
*
{C60A40F7-B6A2-428C-8E87-E1BF6563F650} (from process environment)
Disable the
profilers or link them from the JustMock configuration utility. Restart the
test runner and, if necessary, Visual Studio after linking."
I've already linked the "Visual Studio 2015 Code Coverage/IntelliTrace" profiler in the Justmock settings, but this didn't change a thing.
Does anyone have a solution?
5 Answers, 1 is accepted
JustMock does not yet have official support for integrating with the Visual Studio 2015 profiler. Unofficially, you can try to enable support by pasting the following snippet:
<
add
product
=
"Visual Studio 2015 Profiler"
name
=
"VSPerf 14"
profilerGuid
=
"C60A40F7-B6A2-428C-8E87-E1BF6563F650"
/>
<
add
product
=
"Visual Studio 2015 Profiler"
name
=
"VSPerf 14 64-bit"
is64bit
=
"true"
profilerGuid
=
"C60A40F7-B6A2-428C-8E87-E1BF6563F650"
/>
<
add
product
=
"Visual Studio 2015 Profiler"
name
=
"VSPerf 14 alt"
profilerGuid
=
"E03EE726-D44E-43C4-A0DC-C8EA95F8E68A"
/>
<
add
product
=
"Visual Studio 2015 Profiler"
name
=
"VSPerf 14 64-bit alt"
is64bit
=
"true"
profilerGuid
=
"E03EE726-D44E-43C4-A0DC-C8EA95F8E68A"
/>
I'd be happy to hear about any experiences you get while trying out the experimental integration, whether positive or negative!
Regards,
Stefan
Telerik
Hi
This 'fix' worked for me, but can you tell me when a permanent fix will be available
Thanks
Paresh
Unfortunately, that improvement is not in our immediate plans. I am really sorry about that.
Regards,
Svetlozar
Telerik by Progress
Hi
I am trying the same on VSTS builds using Asp.net build template using elevated mode. Can you please explain how to do it?
There is integration between JustMock and Visual Studio 2015 Pofiler & Code coverage. You could enable it from the configuration window by checking the checkbox.
Regarding Visual Studio Team Services we don't have official support for it. We have clients who managed to make it work using a dedicated runner host. That way you could regsvr32 the profiler.
Unfortunately we couldn't make that work for the shared host runner. I would assume that is a security issue, but we haven't received confirmation from Microsoft. Feel free to give it a try, though.
Regards,
Kamen Ivanov
Progress Telerik