I have a Visual Studio 2012 solution with a C# project and a test project which references the output of the C# project. The test project runs fine in Visual studio.
But if I run it with MSTest.exe in the Developer command prompt:
MSTest.exe /testcontainer:mytest.dll
it fails giving lots of warnings like:
Test Run deployment issue: The assembly or module 'Microsoft.SharePoint.Search.Extended.Query' directly or indirectly referenced by the test container '(path of mytest.dll)' was not found.
I dont think Visual Studio is copying the referenced dlls which are not part of the solution.
What is the solution to this ? how do i run my test suit with MSTest.exe
DeploymentItemAttribute
on test method. If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With