Visual Studio 2015 Enterprise Profiler and Justmock

4 posts, 0 answers
  1. Toine
    Toine avatar
    1 posts
    Member since:
    Feb 2012

    Posted 16 Sep 2015 Link to this post

    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?

     

  2. Stefan
    Admin
    Stefan avatar
    198 posts

    Posted 16 Sep 2015 Link to this post

    Hi Toine,

    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"/>
    into "C:\Program Files (x86)\Telerik\JustMock\Libraries\Telerik.JustMock.Configuration.exe.config" (somewhere among the rest of the <add/> statements in that file), then running the JustMock Configuration utility and checking the "Visual Studio 2015 Profiler" check box. I can't guarantee that it will definitely work, but I tested it on a sample project and it worked fine - both the profiler and JustMock ran in tandem.

    I'd be happy to hear about any experiences you get while trying out the experimental integration, whether positive or negative!

    Regards,
    Stefan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
  4. Paresh
    Paresh avatar
    1 posts
    Member since:
    Apr 2013

    Posted 14 Oct in reply to Stefan Link to this post

    Hi

    This 'fix' worked for me, but can you tell me when a permanent fix will be available

    Thanks

    Paresh

  5. Svetlozar
    Admin
    Svetlozar avatar
    271 posts

    Posted 19 Oct Link to this post

    Hi,

    Unfortunately, that improvement is not in our immediate plans. I am really sorry about that.

    Regards,
    Svetlozar
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top