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

Test failing on TFS Build Server

1 Answer 169 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jonathan Rajotte
Top achievements
Rank 1
Jonathan Rajotte asked on 16 Sep 2011, 04:56 PM
Hi, 
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Ricky
Telerik team
answered on 20 Sep 2011, 10:07 AM
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,
Mehfuz
the Telerik team

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

Tags
General Discussions
Asked by
Jonathan Rajotte
Top achievements
Rank 1
Answers by
Ricky
Telerik team
Share this question
or