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

2 posts, 0 answers
  1. Bob
    Bob avatar
    10 posts
    Member since:
    Apr 2014

    Posted 16 Jul 2015 Link to this post

    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...


  2. Stefan
    Stefan avatar
    198 posts

    Posted 21 Jul 2015 Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top