Test failing on TFS Build Server

2 posts, 1 answers
  1. Jonathan Rajotte
    Jonathan Rajotte avatar
    82 posts
    Member since:
    Oct 2005

    Posted 16 Sep 2011 Link to this post

    I am trying to configure my build server with JustMock (Trial Version 2011.2.713). I am using TFS 2010.  

    1. I installed JustMock on the build server.
    2. I followed the steps to have my BuildTemplate.xaml modify the environment variables described in this post.

    I get the following error:
    Unit Test Adapter threw exception: 
    Type 'Telerik.JustMock.MockException' in assembly 'Telerik.JustMock, Version=2011.2.713.2, Culture=neutral, PublicKeyToken=8b221631f7271365' is not marked as serializable..

    I also get a warning:
    Warning: Test Run deployment issue: The assembly or module 'Telerik.CodeWeaver.Hook' directly or indirectly referenced by the test container 'd:\builds\agents\internal\3\myapp\myapp_main_ci\binaries\myapp.test.dll' was not found.

    Thanks for your help.
  2. Answer
    Ricky avatar
    467 posts

    Posted 20 Sep 2011 Link to this post

    Hi Jonathan,
    Thanks again for sending the issue.

    The main problem here is that Telerik.CodeWeaver.Hook.dll that is reference by JustMock is not found in this path 'd:\builds\agents\internal\3\myapp\myapp_main_ci\binaries\' and that's why the MockException is thrown that on the other hand is unhandled. In that regard, you need to ensure  that Telerik.CodeWeaver.Hook.dll is copied to the specific folder. You can use the "Workspace" tab to specify what other files (not in your project) to be copied to the build directory.

    Hope that solves your problem.

    Kind Regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top