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
- Windows 8.1
In order to use Telerik JustMock the following additional tools must
be installed beforehand:
In the upcoming Telerik JustMock Q2 2015 release, the support for .NET prior to 4.0 will be dropped.
You will still be able to write and execute unit tests for assemblies, targeting .NET 3.5.
The only thing to consider in such scenarios is that, your test projects must target .NET 4.0 or later.
Telerik JustMock integrates with the following Integrated Development Environments:
- Visual Studio 2008
- Visual Studio 2010
- Visual Studio 2012
- Visual Studio 2013
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 as well.
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/2013 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/2013 you might have to perform manual configuration by setting up 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 for TFS 2010 or TFS 2012. Or check this
page to integrate Telerik JustMock in TFS 2013 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.