cnd
cnd

Reputation: 33714

Can I run tests in the same (constant) folder (to not create new folder for every new test)

So I want to run the tests in the same folder each time (to not create new folder for every new test).

I really don't need to log test data and also I've got some xml from Nhibernate I need to move with it . It is coping to output directory. But doesn't work for test directories.

Really I just want to make all unit tests in the same folder. Is it real ?

Upvotes: 1

Views: 354

Answers (1)

Daniel Hilgarth
Daniel Hilgarth

Reputation: 174289

You have two question:

Can you make VS to always deploy the assemblies to the same directory for the tests?
Yes, you can.

  1. Open the test settings (Test -> Edit test settings -> [your settings]).
  2. Choose "General" on the left
  3. Select "User-defined scheme" on the right
  4. Remove the checkbox for "Append date-time stamp"
  5. Enter a "Prefix text"

Can you tell VS to deploy additional files?
Yes, you can.

  1. Open the test settings (Test -> Edit test settings -> [your settings]).
  2. Choose "Deployment" on the left
  3. Activate it by choosing "Enable deployment"
  4. Add the additional files

Upvotes: 1

Related Questions