When open my LocalTestRun.testrunconfig file Deployment section I can choose which files are deployed to the Test output folders, but I need that a specific file to be deployed in a given subfolder. How to do that?
You can specify subdirectories for files or directories using the outputDirectory
attribute of the DeploymentItem
element:
<TestRunConfiguration ...>
...
<Deployment>
<DeploymentItem filename="%File or Directory to deploy path%"
outputDirectory="%output subdirectory%" />
filename
attribute can contain absolute paths or relative paths(to the RelativePathRoot which is the directory of the solution containing your test project)outputDirectory
attribute contains destination subdirectory under the deployment root directoryO_o