Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio How to set the active test settings

Hi My question is about how can i set the active test settings in the project file for visual studio 2010, I mean, what flag or entry does the visual studio modify in the solution file or where is that setting. Im developing a solution file generator but cant find the way to auto select the required test settings as the default settings

like image 266
Miguel Merayo Regueras Avatar asked Feb 20 '11 18:02

Miguel Merayo Regueras


People also ask

How do I run test coverage in Visual Studio?

On the Test menu, select Analyze Code Coverage for All Tests. You can also run code coverage from the Test Explorer tool window. Show Code Coverage Coloring in the Code Coverage Results window. By default, code that is covered by tests is highlighted in light blue.

How do I enable live unit testing?

Start, pause, and stop To enable Live Unit Testing, select Test > Live Unit Testing > Start from the top-level Visual Studio menu.

How do I create a test load in Visual Studio?

Create a load test projectOpen Visual Studio. On the start window, choose Create a new project. On the Create a new project page, type web test into the search box, and then select the Web Performance and Load Test Project [Deprecated] template for C#. Choose Next.


1 Answers

If you do not see anything under the Menu Item "Test > Select Active Test Settings" or "Test > Edit Test Settings", Check your Solution Explorer window for files ending with ".testsettings" under the "Solution Items" folder.

If there are not any .testsettings files, you can right click the "Solution Items" or "Solution" folder, then click on "Add" then select "New Item". Under the "Installed Templates" select "Test Settings". Select the "Test Settings" template, name the file, and click the "Add" button. This is now part of your solution and now appears in the "Test > Select Active Test Settings" and "Test > Edit Test Settings" menu items.

like image 86
jhamm Avatar answered Sep 25 '22 01:09

jhamm