views:

81

answers:

1

Is there any way to deploy an item without using this attribute? I'm starting to get a stack of attributes over my test base and it's becoming hard to maintain. Most of my items are DLLs that need to be put into a folder below the deployment directory.

+1  A: 

You can define them in the local test run configuration.

Test => Edit Test run configurations => choose one.

Go to the deployment section, add you deployment items.

The problem here is that you need to maintain the test run configurations, which is sometimes not better then maintaining the attributes. Even more, the tests are not self contained anymore, they depend on this configuration. And - the deployment items are deployed even if you only run a single test which wouldn't need it. But sometimes its easier here.

IMHO, MSTest is quite half-baked. Deployment items are a nightmare.

Stefan Steinegger
I'll see if using the TestRunConfig makes this less painful. Thanks for the suggestion. Yeah and these cookies are not done at all..
Adam Driscoll
I ended up referencing the assemblies I needed so they would be copied to the test output directory. From there I could copy then to where I needed them.
Adam Driscoll