MSTest
-
MSTest Command Line Error - Test 'x' cannot be found
-
The problem is in the vsmdi file. There is an attribute of the 'TestLink' element, 'storage'. It is pointed to the relative path in the Visual Studio environment. That's why it works inside VS and not in the test environment. You will need to point it to the correct path in the test environment and the test will execute.
<TestLink id="6250d036-0a52-8f15-a606-0045dc75e284" name="EventWorkflowFYIToResolvedCoach" storage="hindsight.testing\unittests\hbs tests\bin\release\hbs tests.dll"... />
Unfortunately that will require (at least) two versions of the vsmdi file. I haven't figured out how to assign this attribute dynamically.