The JustMock Code Activity Workflow for Team Foundation Server 2013 is designed to deploy your JustMock test
projects to TFS 2013 with zero manual configurations for setting up your build environment.
It breaks you free from tedious configuration of environment variables and provides you simple options
that can get you on the move in no time. In this topic we will focus on what are the required configuration
steps when working with JustMock Code Activity Workflow for TFS 2013.
First, you need to point the custom assemblies folder that contains the Telerik.JustMock.Build.Workflow.VS2013
DLL to your build controller.
The DLL is included in the JustMock installation directory under the
Do this by editing your build controller properties. Go to Team Explorer, then
Builds and from the Actions menu select
Manage Build Controllers. You will be prompted with a dialog similar to the one below:
Then you have to set the
"Version control path to custom assemblies"
property to the location of the folder containing the Telerik.JustMock.Build.Workflow.VS2013.dll.
Continue by customizing the Default Template (TfvcTemplate.12.xaml) of your team project. If you are new to TFS,
follow the next steps in order to download and access your build process template:
Open your Build Definition and navigate to the Process tab.
Click the Show details button in the Build process template field and
Download the Default Template (TfvcTemplate.12.xaml). You should save it
somewhere in the current projects repository.
Then, add the downloaded precess template under Source Control in your project.
Open your Build Definition again and in the Process tab >
Build process template field, click New..
Browse the above build process template and select it as default to the project.
To edit the template, first check it out from Source Control.
Then, create new class library project (This will be a dummy project. Its only purpose is for editing the template.
You don't need to add it to your solution or project collection) and refer the
Include the downloaded build process template in the class library project, using the
Add as Link option.
Set its Build Action to None.
For the changes to take effect, later on you will need to save the "dummy" project and
check-in the build process template.
Below is a screenshot of a section from the Default Template (TfvcTemplate.12.xaml):
You need to wrap the Run VS Test Runner activity with the custom JustMockStart/JustMockStop
activities from the Telerik.JustMock.Build.Workflow.VS2013.dll.
In order to drag/drop the JustMock activities to your build template, you have to add the
assembly into your Toolbox pane. Do this by opening Tools >
Choose Toolbox Items. Then, select Browse and point to the
Telerik.JustMock.Build.Workflow.VS2013.dll in your custom assemblies folder
(in this example: $/JustMockActivityWorkflowProject/Addons).
After placing the JustMock activities, your template must look like this:
Finally, save the "dummy" project and check-in the process template!
Once all is set, your JustMock tests that require profiler will work as expected.