Like the user in this thread I'm having a problem getting my unit tests running in TFS. In my case, I'm running TFS 2012. However, having read through the thread I assumed that the process to fix it would be the same.
A little more reading and I found this documentation article and I followed the steps shown there. In my case I followed the "Steps for integrating JustMock in updated build configurations (DefaultTemplate.11.1.xaml)".
I set up the Build Controller to get the required assemblies (jm01.png)
I modified the build template (jm02.png)
After checking in the modified template I ran my build. It failed.
"Test method Genesis.Service.Implementation.Tests.Digests.WeeklyDigestFixture.ShouldCallAllSections threw exception:
Telerik.JustMock.Core.ElevatedMockingException: Cannot mock 'Int32 get_DigestsToBeIncludedOn()'. The profiler must be enabled to mock, arrange or execute the specified target."
Thinking I must have missed a step and that the profiler wasn't working I investigated further.
jm03.png and jm04.png, however, suggest that I didn't.
So why are my tests failing?