20.6. Managing Large Numbers of Tests

Visual Studio provides both the Test View window and the Test List Editor to display a list of all of the tests in a solution. The Test View window, which was shown earlier in the chapter in Figure 20-2, simply displays the unit tests in a flat list. However, if you have hundreds, or even thousands, of unit tests in your solution, then trying to manage them with a flat list will quickly become unwieldy.

The Test List Editor enables you to group and organize related tests into test lists. Since test lists can contain both tests and other test lists, you can further organize your tests by creating a logical, hierarchical structure. All the tests in a test list can then be executed together from within Visual Studio, or via a command-line test utility.

The Test List Editor can be opened from the Test Windows menu, or you can double-click the Visual Studio Test Metadata (.vsmdi) file for the solution. Figure 20-9 shows the Test List Editor for a solution with a number of tests organized into a hierarchical structure of related tests.

Figure 20.9. Figure 20-9

On the left in the Test List Editor window is a hierarchical tree of test lists available for the current solution. At the bottom of the tree are two project lists, one showing all the test ...

Get Professional Visual Studio® 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.