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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access