views:

307

answers:

0

Hi,

I am interested in how Visual Studio picks up a localtestrun.testrunconfig file and then how it uses it to establish which files to deploy to the test run folder?

I currently have two problems:

  1. I have a visual studio 2008 solution which has both a web application project and a web services host project. I would personally prefer these to be in separate solutions, but for now I'm stuck with this. Both of these projects have a web.config file. Both projects have associated unit test projects. When the unit test projects are run, I have configured the local test run config to deploy the web.config files to the test run folder. But how do I tell it which web.config file to use for each test? It seems like I want two localtestrun config files, one attached to the web application tests and one attached to the web services tests. Any ideas how to do this?

  2. When I run the unit tests in visual studio, they all behave nicely. When I run them on the command line (through MsBuild as it happens) all hell breaks loose. There are dependent dlls which are not deployed (I would have thought it would just deploy all the referenced assemblies?) and it creates an entirely new folder in the test output folder with another load of dll's in it (some of which are required and some are not). I have no idea where it is getting it's list of items to deploy from. It is certainly not comming directly from the localTestRun config file!

Many thanks for any help!