
Code Coverage Requested: Instrument in Deployment Folder
If you have chosen to gather code-coverage data but not to instrument binaries in place, Visual Studio performs the following steps:
Create deployment folder. Create a set of folders that will be used for the test run. For more information about this step for local test runs, see the Local Deployment Folders section in Test Deployment Overview.
Copy deployment files. Copy all deployment files and folders to the deployment folder.
Instrument binaries for code coverage. This occurs in the folder to which the binary has been copied. For more information, see How to: Obtain Code Coverage Data.
Re-sign assemblies. If a strong-named assembly has been instrumented, re-sign it now. For more information, see Instrumenting and Re-Signing Assemblies.
Run setup scripts, if any. A setup script assigns values to environment variables to determine aspects of the test run, such as the name of the folder in which to save test results. The setup script itself resides in the root deployment folder. For more information, see How to: Specify a Test Run Configuration.
Run tests and produce test results. This includes writing results to the test results file and to a code coverage file.
Run cleanup scripts, if any. You can indicate both setup scripts and cleanup scripts in run configuration. For more information, see How to: Specify a Test Run Configuration.