Telerik® JustMock™ by Progress

In this article we will show you how to integrate Telerik JustMock with Jenkins-CI.

Integrating JustMock within Jenkins CI using MS Build Tasks

The first possible way to integrate Telerik JustMock with the Jenkins CI process is by using JustMock MSBuild Tasks. This could be appropriate if you have predefined XML for your build process to follow.

Integrating JustMock within Jenkins CI using Windows Batch Command

Another approach for integrating Telerik JustMock with Jenkins is provided by the Execute Windows batch command build step in the Jenkins job configuration. To see how to execute JustMock test DLLs via the Command Prompt, refer to Windows Batch Command.

Below you will find steps to follow for running JustMock test DLLs in the Jenkins build process:

  1. Start by adding Execute Windows batch command build step into your configuration.

    Jenkins And Team City Jenkins 1
  2. Having this, you are now able to configure it to execute test DLLs via the cmd.exe as shown in Windows Batch Command.

    Jenkins And Team City Jenkins 2

    You will simply need to pass an appropriate test execution command through the JustMockRunner.exe, which will configure the rest of the environment automatically.

    For example: "C:\Program Files (x86)\Telerik\JustMock\Libraries\JustMockRunner.exe" "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\MSTest.exe" /testcontainer:"C:\Program Files (x86)\Telerik\JustMock\Examples\Telerik.JustMock.Tests\bin\Debug\Telerik.JustMock.Tests.dll"

See Also