Running Your Tests

As you saw back in Figure 8.4, the Test menu is used to run your unit tests. There are many options here. You can select individual tests to run, or you can run them all. You can also choose to run only failed tests, passed tests, tests not yet run, or just rerun your last run tests.

The Debug selection on the Test menu will run tests with the debugger activated. This allows you to break into the debugger if a test fails and is useful if you are actively troubleshooting code through tests.

Note

When you run a test project, any referenced projects are recompiled along with your test project.

Viewing Test Results

When you run your tests, the results are shown in the Test Explorer window. The Test Results window provides an ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition 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.