Completed
Last Updated: 08 Jun 2023 11:59 by ADMIN
Tomer
Created on: 11 Jan 2022 11:07
Type: Feature Request
2
Add support for Mac OS

We're developing .net 5/core services, using Rider IDE and MacOS.

Please:

1. Add support to run JustMock under MacOS (profiler need to be supported, enabled issue, etc.), or if already supported, please provide instructions of how to activate it per test, for example using NUnit.

2. Add integration with Rider so all the process will be much easier.

 

12 comments
ADMIN
Ivo
Posted on: 08 Jun 2023 11:58

Hello All,

The feature is avialble in R2.2023. Enjoy it!

Regards,
Ivo
Progress Telerik

A brand new JustMock course was just added to the Virtual Classroom - the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products! Check it out at https://learn.telerik.com.
ADMIN
Ivo
Posted on: 14 Feb 2023 10:04

Hello Nick,

No worries, you are welcome to any further comments or suggestions that you might have.

Regards,
Ivo
Progress Telerik

A brand new JustMock course was just added to the Virtual Classroom - the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products! Check it out at https://learn.telerik.com.
Nicholas
Posted on: 08 Feb 2023 11:34

Hi Tsvetko,

Thank you for your help and I apologise for my frustration.

I had installed JustMockLite from the Nuget package and getting the Windows Registry error.

I use Rider on Mac, and it errors.

However, the same project with Visual Studio for Mac works.

I will contact JetBrains and see if I can resolve.

Thank you.

Nick

ADMIN
Tsvetko
Posted on: 07 Feb 2023 09:32

Hi Nicholas,

Let me jump into this conversation as my colleague Ivo is out of the office.

Excuse us for any confusion - at the moment JustMock does not support Mac. We are actively working on this feature and target to ship it for the upcoming R2.2023 release. 

However, JustMockLite (the free version of JustMock), on the other side, should be fine in this scenario. You can check if it fits your needs. 

Regards, Tsvetko Progress Telerik

A brand new JustMock course was just added to the Virtual Classroom - the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products! Check it out at https://learn.telerik.com.
Nicholas
Posted on: 31 Jan 2023 16:33

Hi,

Tried using the latest free version - it doesn't work.

All I get is an error that the platform is invalid as it's trying to do Windows Registry calls.

"The type initializer for 'Microsoft.Win32.Registry' threw an exception. Registry is not supported on this platform."

Is there a previous version which does work on Mac?

 

Nick

 

 

ADMIN
Ivo
Posted on: 14 Dec 2022 09:30

Hello Nick,

I would like to let you know that we have already started our initial research for macOS support, there is no official statement for that since we have to make sure what we can achieve. I expect that we could target this feature for R2.2023 (usually available in mid-May), but I cannot commit to this for sure.

I hope the provided info answers your question and gives some confidence that this feature would be delivered.

Regards,
Ivo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Nicholas
Posted on: 13 Dec 2022 13:29

Hi Mihail,

You suggest using the free version until the full version is ported to Mac.

This may be possible for the short term, but is not a long term solution for us.

What is the timescale for this, as the roadmap for JustMock doesn't show Mac support in the pipeline.

It's a shame the free version is so limited.

Nick

 

ADMIN
Ivo
Posted on: 08 Nov 2022 16:47

Hello Jamie,

Strongly agreed, the full version has already supported Linux (see this article) and the Mac version is under the radar, so stay tuned. Regarding Rider, it is also considered and just needs to be prioritized. Many thanks for the feedback provided, your opinion is really valuable to us, so we can stay up to date with the customer's voice.

Regards,
Ivo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jamie
Posted on: 05 Nov 2022 23:31

This really should be cross-platform and be capable of running in a Linux environment in a DevOps pipeline. I'm aware of the Windows version that runs in the pipeline.. but it's an extra step. I develop on Windows and Linux and this is a pain point for me.

 

Strongly support the integration with Rider as well.

ADMIN
Mihail
Posted on: 27 Sep 2022 07:25

Hello Nick,

I am happy to hear you have new hardware and at the same time sad about the news that you want to switch to Moq. Switching to Moq will require quite an effort. For that reason, I will recommend you to switch to JustMock Lite. It will require less effort on your part and when we implement support for Mac OS in the paid version you will be able to take advantage of it as well.


Mihail
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Nicholas
Posted on: 23 Sep 2022 20:50

Having made the swap to developing on Mac, now have to convert my tests to Moq instead, would much prefer to use JustMock.

 

ADMIN
Mihail
Posted on: 18 Jan 2022 09:40

Hello Tomer,

I am afraid that we still do not support Mac OS. Regarding Rider, JustMock does not have an extension for it but you can still use it through environment variables. It is a good idea that we add a documentation article about it. I will leave this item for Mac OS support and log another for documentation article on Rider integration.

Here is information on how you can JustMock in Rider:

To run JustMock in Rider you should specify a handful of environment variables for the Test Runner. Here are the variables and their values:

  • name: JUSTMOCK_INSTANCE, value: 1
  • name: COR_ENABLE_PROFILING, value: 1
  • name: COR_PROFILER, value: {B7ABE522-A68F-44F2-925B-81E7488E9EC0}
  • name: COR_PROFILER_PATH_32, value: <JustMock Install Root>\Progress\Telerik JustMock\Libraries\CodeWeaver\32\Telerik.CodeWeaver.Profiler.dll
  • name: COR_PROFILER_PATH_64, value: <JustMock Install Root>\Progress\Telerik JustMock\Libraries\CodeWeaver\64\Telerik.CodeWeaver.Profiler.dll

Here is a screenshot of how this should look like:

Please have in mind that JetBrains have logged an issue related to environment variables, link. If that bug is not fixed please use runsettings to set the variables. Here are how those runsettings should look like:

 

 

<RunSettings>
    <RunConfiguration>
      <EnvironmentVariables>

        <JUSTMOCK_INSTANCE>1</JUSTMOCK_INSTANCE>

		<!-- .NET Framework -->
        <COR_ENABLE_PROFILING>1</COR_ENABLE_PROFILING>
        <COR_PROFILER>{B7ABE522-A68F-44F2-925B-81E7488E9EC0}</COR_PROFILER>
        <COR_PROFILER_PATH_32>C:\Program Files (x86)\Progress\Telerik JustMock\Libraries\CodeWeaver\32\Telerik.CodeWeaver.Profiler.dll</COR_PROFILER_PATH_32>
        <COR_PROFILER_PATH_64>C:\Program Files (x86)\Progress\Telerik JustMock\Libraries\CodeWeaver\64\Telerik.CodeWeaver.Profiler.dll</COR_PROFILER_PATH_64>

		<!-- .NET Framework -->
        <CORECLR_ENABLE_PROFILING>1</CORECLR_ENABLE_PROFILING>
        <CORECLR_PROFILER>{B7ABE522-A68F-44F2-925B-81E7488E9EC0}</CORECLR_PROFILER>
        <CORECLR_PROFILER_PATH_32>C:\Program Files (x86)\Progress\Telerik JustMock\Libraries\CodeWeaver\32\Telerik.CodeWeaver.Profiler.dll</CORECLR_PROFILER_PATH_32>
        <CORECLR_PROFILER_PATH_64>C:\Program Files (x86)\Progress\Telerik JustMock\Libraries\CodeWeaver\64\Telerik.CodeWeaver.Profiler.dll</CORECLR_PROFILER_PATH_64>

      </EnvironmentVariables>
    </RunConfiguration>
</RunSettings>

I hope this information is helpful.

Regards,
Mihail
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.