I have a Generic Test defined in Visual Studio 2012.
If I hard code all the paths then the test runs perfectly. Obviously I need relative paths for this to work on a build server. However, it fails to deploy my files because it is looking in the wrong place.
Under "Additional files to deploy with this generic test:" my solution relative files appear like so (verbatim):
<Solution Directory>\SubDir\Tester.exe
When the test actually runs, the output shows the following error:
Warning: Test Run deployment issue: Failed to get the file for deployment item '\SubDir\Tester.exe' specified by the test 'generictest1': System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\SubDir\Tester.exe'.
As you can see, It's using Visual Studio's working directory rather than the '<Solution Directory>'
it claims.
Any ideas on how to fix this, or what I might be doing wrong?