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

Tests using Static mocking failing on Build Server

3 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Imaji
Top achievements
Rank 1
Imaji asked on 14 Sep 2010, 11:22 AM
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

3 Answers, 1 is accepted

Sort by
0
Chris
Telerik team
answered on 15 Sep 2010, 08:56 AM
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
0
Imaji
Top achievements
Rank 1
answered on 22 Sep 2010, 12:44 PM
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
0
Ricky
Telerik team
answered on 24 Sep 2010, 11:23 AM

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
Tags
General Discussions
Asked by
Imaji
Top achievements
Rank 1
Answers by
Chris
Telerik team
Imaji
Top achievements
Rank 1
Ricky
Telerik team
Share this question
or