This topic outlines the steps required to install Telerik JustMock.
Telerik JustMock supports the following operating systems:
- Windows XP
- Windows Server 2003
- Windows Server 2008
- Windows Vista
- Windows 7
- Windows 8
In order to use Telerik JustMock the following additional tools must
be installed beforehand:
Telerik JustMock integrates with the following Integrated Development Environments:
- Visual Studio 2008
- Visual Studio 2010
- Visual Studio 2012
Installing Telerik JustMock
You can download Telerik JustMock by logging in your
Download the windows installer and simply run it to install Telerik JustMock.
Using Telerik JustMock
To use Telerik JustMock in your test projects you need to add a reference to
Telerik.JustMock.dll (or Telerik.JustMock.Silverlight.dll if you use it in a Silverlight project).
This assembly can be found in the installation directory under the Libraries folder (by default
Also, if you are using Automocking, you will need to add
Telerik.JustMock.Container.DLL and have the Unity assemblies in the probing paths aswell.
Officially supported testing frameworks:
Officially supported test runners:
- MsTest (QTAgent*)
- VsTest (vstest.executionengine*)
- JustCode Test Runner
- ReSharper Test Runner (version 7.1.3)
Integrating Telerik JustMock in TFS 2010/2012 Code Activity Workflow
In case your test runner is being executed under one of these accounts:
- NT AUTHORITY\SYSTEM
- NT AUTHORITY\LOCAL SERVICE
- NT AUTHORITY\NETWORK SERVICE
To mock non-virtual/static methods on TFS 2010/2012 you might have to perform manual configuration by setuping the following system environment variables:
This will enable JustMock profiler for all managed processes on your build/test server.
Enabling JustMock profiler on global scale could slow down the execution of all managed processes.
We strongly recommend configuring your test runner to execute under a dedicated account and setup the environment variables for that account only. With such configuration other managed application won’t be affected by JustMock profiler.
Please follow this article for detailed steps, describing the Code Activity Workflow.
Access to the documentation
After the installation you can find a Getting Started Guide and example projects set in the Start Menu under Telerik | JustMock.
The example projects provide a hands-on approach, unit testing JustMock itself.
The documentation is also available in Help3 format shipped separately in a ZIP file.