Visual studio How to set active test parameters

Hi My question is how to set active test parameters in the project file for visual studio 2010, I mean which flag or record the visual studio changes in the solution file or where this parameter is. I am developing a solution file generator, but I cannot find a way to automatically select the necessary test parameters as the default settings.

+6
file visual-studio-2010 settings testing solution
source share
2 answers

If you don’t see anything under the menu item "Test"> "Select active test parameters" or "Test"> "Edit test settings", check the "Solution Explorer" window for files ending with ".testsettings" in the "Solution Elements" folder.

If there are no .testsettings file files, you can right-click on the “Solution” or “Solution” folder, then click “Add”, then select “New item”. In the "Installed Templates" section, select "Test Settings." Select the Test Settings template, name the file and click the Add button. Now this is part of your solution and is now displayed under "Test> Select active test settings" and "Test> Change test settings."

+5
source share

If memory is used, active test parameters are saved in the .vsmdi file, and not in the solution file.

Edit: in particular, this is the "storage" attribute in the RunConfiguration element in the .vsmdi file.

+1
source share

All Articles