This is a migrated thread and some comments may be shown as answers.

ElevatedMockingException with Azure pipeline

2 Answers 162 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Allan
Top achievements
Rank 1
Allan asked on 25 Sep 2019, 01:26 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Mihail
Telerik team
answered on 25 Sep 2019, 01:32 PM

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
0
Allan
Top achievements
Rank 1
answered on 27 Sep 2019, 08:29 AM
I've opened a ticket for the issue
Tags
General Discussions
Asked by
Allan
Top achievements
Rank 1
Answers by
Mihail
Telerik team
Allan
Top achievements
Rank 1
Share this question
or