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
I had the same issue, where integration tests where dependent on files being in a specific folder. I ended up adding a script to the post build event of one of my projects to copy in the files to the right location using xcopy.
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