Tests using Static mocking failing on Build Server

4 posts, 0 answers
  1. Imaji
    Imaji avatar
    15 posts
    Member since:
    Apr 2007

    Posted 14 Sep 2010 Link to this post

    Hi,

    We're using TFS2010, and we think we've installed JustMock correctly on the server, but everytime we run the build any test using the Static mocking is failing and everything else passes.

    The documentation only seems to deal with the 2008 build scripts, is there a 2010 version anywhere?

    Thanks,
    John
  2. Chris
    Admin
    Chris avatar
    221 posts

    Posted 15 Sep 2010 Link to this post

    Hi John,
    You could take a look at the following forum post which explains how you could integrate JustMock with Team Build 2010:

    http://www.telerik.com/community/forums/justmock/general-discussions/setupstatic-mockexception-opps-there-were-some-error-intercepting-target-call.aspx#1259708

    Hope this helps.

    All the best,
    Chris
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
  4. Imaji
    Imaji avatar
    15 posts
    Member since:
    Apr 2007

    Posted 22 Sep 2010 Link to this post

    Hi,

    We finally got around to putting this in place, but it hasn't helped the failing static tests.

    We've now changed the implementations to use non-static class.

    Cheers,
    John
  5. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 24 Sep 2010 Link to this post

    Hi John,

    Glad to hear that you found a workaround for the issue. However if you can provide us more pointers like what kind of exception you are getting on server, then it will be helpful for us to pin point the exact issue so that it does not occur in future.

    Additionally, you can check if the tests are running in the same order as locally. Static and concrete method mocking are done by profiler and this could happen that methods / properties are initialized before profiling has started and could fail the tests.


    Kind Regards,
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top