ElevatedMockingException with Azure pipeline

3 posts, 1 answers
  1. Allan
    Allan avatar
    2 posts
    Member since:
    Jun 2019

    Posted 25 Sep 2019 Link to this post

    I have yet to be able to run my unit tests within my pipeline.

    I have installed Telerik JustMock Tests v.2 and I have configured the  profiler paths as described (those paths have been verified to contain the dlls)

     

    pathTo64BitJustMockProfiler: '$(System.DefaultWorkingDirectory)/Solution Items/External assemblies/Telerik.JustMock/64/Telerik.CodeWeaver.Profiler.dll'

    pathTo32BitJustMockProfiler: '$(System.DefaultWorkingDirectory)/Solution Items/External assemblies/Telerik.JustMock/32/Telerik.CodeWeaver.Profiler.dll'

     

    Yet when I run my tests I get this error: Telerik.JustMock.Core.ElevatedMockingException: Cannot mock '...'. The profiler must be enabled to mock, arrange or execute the specified target.

     

    On our old build server the same dlls are working fine but not in Azure. Is there a way to get this working?

  2. Answer
    Mihail
    Admin
    Mihail avatar
    263 posts

    Posted 25 Sep 2019 Link to this post

    Hello Allan,

    Could you please provide a build log with diagnostics?  This way we will be able to investigate the case. Please have in mind that in forum posts the system won't allow you to attach any files due to security reasons. That is why I will recommend you to open a support ticket and attach the log file there.

    Regards,
    Mihail
    Progress 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. Allan
    Allan avatar
    2 posts
    Member since:
    Jun 2019

    Posted 27 Sep 2019 in reply to Mihail Link to this post

    I've opened a ticket for the issue
Back to Top