A quick guide to explain how to use the JustMock.Commercial package on Azure DevOps.

One of the main features of the JustMock.Commercial R3 2020 release is the possibility to deploy the JustMock profiler along with the mocking framework assemblies. This greatly improves the usability and fixes some of the drawbacks from previous versions. So far so good, but probably many of you would be curious about how this new feature can be used in Azure DevOps. With this post, I will try to give a short recipe in a few simple steps to make it work in your CI/CD pipeline.

For the purpose of the exercise we will use a minimal MSTest Unit Test project imported in the source repository:

Sample JustMock test project

The sample project is available on GitHub.

We also need a pipeline derived from the .NET Desktop task template. The initially generated VsTest task is replaced with JustMock Tests v2 task. Here it is:

Sample pipeline with JustMock v2 task

Of course, the build definition above is just an example and you could continue to use your preferred approach for building pipelines, even with YAML.

Let us go through required configuration step by step.

#azure #devops

How to Use the JustMock.Commercial Package on Azure DevOps
2.00 GEEK