Telerik® JustMock™ by Progress

Another way to execute test DLLs is via the Command Prompt(cmd.exe).

This topic demonstrates how to execute Telerik JustMock test DLLs with cmd.exe.

How to run profiler enabled JustMock tests in Command Prompt

The procedure of executing test DLLs in Command Prompt is almost identical, whether you are using different unit testing frameworks.

Your first step will be setting the JustMock environment variables, for which there are two possible approaches.

  • We recommend using JustMock Runner. It will automatically set up an appropriate environment for our product.

    JustMockRunner.exe can be found in the Telerik JustMock installation directory under the Libraries folder (by default C:\Program Files\Telerik\JustMock\Libraries\).

    Below you will find an example batch file, that will use MSTest to run all the tests in Telerik.JustMock.Test.DLL (found in the Telerik.JustMock.CSExamples.VS2010.sln inside Telerik JustMock root folder: C:\Program Files (x86)\Telerik\JustMock\Examples).

    Windows Batch Command 1

    Execution command:

    "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"

  • If for any reason the using of JustMock Runner does not apply to your case, it is possible to set the JustMock environment variables manually before running the tests:

    Windows Batch Command 2

    Execution command:



    SET COR_PROFILER={B7ABE522-A68F-44F2-925B-81E7488E9EC0}

    "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"

As shown above, once the environment variables are set, you will be able to run elevated JustMock tests through the Command Prompt, simply by following the standart steps for the choosen unit testing framework.

See Also