Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSTEST folder deployment question

Is there a way to preserve folder structure with MSTEST deployment?

I have a situation with some existing code where I have .config files in a subfolder (called "Configuration"). I can specify this folder using MSTEST deployment but, in it's infinite wisdom, MSTEST just copies the files from this folder to the run folder (TestResult\\Out), i.e. it does not create a subfolder called Configuration. This royally screws up the code and it fails. I don't really want to have to start using complicated pre-test scripts to create folders etc.

Any ideas gratefully received.

Matt

like image 543
Matt Cotton Avatar asked Oct 26 '22 12:10

Matt Cotton


1 Answers

I think I had the same problem...

My tests used a folder called xsd and I wanted to deploy the folder to the test \OUT directory. When I did this, the files inside the xsd folder were copied to the test \OUT directory, but I wanted the folder xsd into the test \OUT directory...

To solve this I read this. (Wayback machine has an archive of this page here)

like image 162
Jorge Avatar answered Dec 04 '22 12:12

Jorge