JustMock stopped working in the latest version 16.2.1 of Visual Studio 2019
The execution of JustMock tests stoped working in Visual Studio. The exact version is 16.2.1. The error message is: "The profiler must be enabled to mock, arrange or execute the specified target."
Posted on:04 Sep 2019 12:45
Thank you Mihail!
The second workaround (adding the JUSTMOCK_INSTANCE env variable) did not work, but the first workaround (starting VS without the Test window) did work for me. That allows me to at least run the unit tests, so I can now wait until the next JustMock release later this month.
Posted on:04 Sep 2019 12:31
We are targeting the upcoming R3 2019 release which can be expected mid September.
Meanwhile you could use two workarounds to solve this issue.
1. Open Visual Studio 2019 without the test window been open.
2. Wait the JustMock async extension to be loaded.
3. Open the Test window and run the tests.
1. Add the JUSTMOCK_INSTANCE = 1 to your user environment variables.
2. Open VS 2019 and run the tests.
We are currently at the stage of final tests of the fix. We could send you an internal version that you could test and verify at your end that our fix is working. If you interested in this, please open a support ticket for JustMock and I will provide you the internal version.
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?
Telerik Feedback Portal
and vote to affect the priority of the items
Posted on:04 Sep 2019 12:13
Is there a time estimate for when the fix will be available? Or, is there a workaround short of uninstalling VS2019 and re-installing an earlier version? Right now I haven't been able to run any of the unit tests in the solution for the past three weeks...