The Unit Test Window lets you run, debug, filter and search tests within the Visual Studio environment.
All available unit tests in the current solution are shown in a tree on the left side. An icon that indicates the current status of the test is shown next to each test that is found in the solution. Three different stages are recognized:
- Failed - The test have been run and failed.
- Passed - The test have been run and passed.
By double clicking on a test you can quickly navigate to the selected test.
By using the toolbar on the top, you can run only selected
() or all
() tests, debug selected tests
(), abort a test run
(), repeat the last test run
(), show only failed tests
(), and show only ignored tests
By default, information for the namespace, the type and the member is shown, but you can easily change this to another type of information that you found more useful. Here is a snapshot of the available options:
Build Options help you to save time by choosing the most appropriate setting for your current needs.
You can also use the Collapse All/Expand All buttons to collapse/expand all results.
To find your tests use the Search bar below the tool bar. Start typing and the tests in the tree will be automatically filtered matching your criteria.
On the right side of the window you can see details about your last test run like Exception message and Stack Trace. Click on each test on the tree to see details from the run.
Additionally you can click on the Console output and Console errors tabs below to find more information.