Telerik® JustMock™ by Progress

This topic shows how easy and intuitive is to integrate JustMock with CodeCoverage or other profiling tools.

Running the JustMock configuration tool

The JustMock configuration is a stand-alone application which could be found in the Telerik JustMock root folder (ex: C:\Program Files (x86)\Telerik\JustMock\Libraries\). You could directly run it from Start > All Programs > Telerik > JustMock > Link JustMock With Other Profilers or if you are once inside Visual Studio you will be able to find it under Telerik > JustMock > Link with other profilers....

Code Coverage Tools 1

Once into the configuration window, you will be able to choose from one of the automatically detected profiler using tools and click on its tick to link it with the JustMock profiler (you should notice the progress bar while the the profilers are being linked). Once completed, a tick will remain against the name of the linked tool.

You can link and unlink profilers from the command line. This is useful for integrating 3rd party profilers into your build system. This is done by executing Telerik.JustMock.Configuration.exe with the /link or /unlink option. For example:

start /wait "" "C:\Program Files (x86)\Telerik\JustMock\Libraries\Telerik.JustMock.Configuration.exe" /link "Visual Studio 2012 Code Coverage/IntelliTrace"

start /wait "" "C:\Program Files (x86)\Telerik\JustMock\Libraries\Telerik.JustMock.Configuration.exe" /unlink "Visual Studio 2012 Code Coverage/IntelliTrace"

The parameter to the /link (and /unlink) option is the name of the profiler to link (or unlink) exactly as it is shown in the UI of the configuration tool. The start /wait "" bit is necessary so that any errors are correctly reported through the exit code. If the start /wait "" bit is omitted, then the tool will always return an exit code of 0, regardless of errors. A non-zero code is returned if the specified profiler is not installed or if there's a typo in the profiler name. Specifying /unlink with no parameter will unlink all profilers.

Code Coverage Tools 2

Further, you can expand the list with showing the undetected profilers, to see the official list of the supported 3rd party profiler using tools in Telerik JustMock.

Code Coverage Tools 3

Unlinking the profilers

To detach the profilers for any reason, you will need to click once again on the check box or use the Clear All button, which will remove all of the current configurations. Reinstalling or repairing the installation of a 3rd party profiler tool, as well as re-registering its profiler, will disable integration.

See Also