This is a migrated thread and some comments may be shown as answers.

Using JustMock on same TFS Build Server as other tests that use Microsoft Fakes

1 Answer 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 2
Bob asked on 16 Jul 2015, 05:26 PM

My team has been using Microsoft Fakes for a while, but recently looked into JustMock and really liked what we saw and wanted to use JustMock going forward and slowly replace all MS Fakes uses to JustMock.  After a bit of hassle getting our Build Server to handle JustMock appropriately, it seems that none of our tests that used MS Fakes now work, getting the error: Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: Failed to get address of function SetDetourProvider from library 'C:\Program Files (x86)\Telerik\JustMock\Libraries\CodeWeaver\32\Telerik.CodeWeaver.Profiler.dll'.

This is a big problem for us as we have too many tests using Fakes to convert them all at once and can't afford an all or nothing approach here.  Is there a way to get them both working on the same Build Server?  Each solution/build only uses one framework...

Thanks!

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 21 Jul 2015, 06:59 AM
Hello Bob,

The recommended approach here is to split the test assembly in two - one old with all the Fakes tests and one new with all JustMock tests. You can gradually migrate your tests from the former into the latter, or not at all. You'll then enable the JustMock profiler only for the latter test run and leave if off during the former.

We will investigate if there is a way to integrate JustMock and Fakes for a seamless experience, but I don't think this would be a priority for us, as JustMock and Fakes are not complementary products - you essentially use one or the other and never both within a single test project.

Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Bob
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or