Action Fade in to Visual Studio 2012 with Test Explorer open, a test class in the code editor, and Solution Explorer open. ...

Action
Fade in to Visual Studio 2012 with Test Explorer open, a test class in the code editor, and Solution Explorer open. As dialogue begins pan in and zoom to the Test Explorer.

Dialogue
Writing unit tests in Visual Studio has never been easier. Visual Studio 2012 features the new Test Explorer window, a fast running, easy to use interface to your unit tests. 



Action
Choose Rebuild Solution from the Project menu. Show Test Explorer adding new Test.

Dialogue
As new tests are written they are automatically discovered and added to Test Explorer during build.



Action
Choose Run All in Test Explorer. Show Red/Green bar animation. A test fails (Red)

Dialogue
You can run all of your tests with a single click. Test runs execute in the background with no impact on IDE responsiveness. 



Action
Click on a failed test. Show details. Show code editor displaying test code.

Dialogue
Failed tests are visibly called out in red and grouped together. Selecting a test in the Test Explorer shows you the details and the code is just a double click away.



Action
Change some code, rebuild, and choose Run Failed Tests from the Test Explorer window. (make sure not 100% of tests are run. Some test should be shown as still failing, some previously failed as pass and some as stale).

Dialogue
After fixing failed test cases and building, you can choose to run just the failed tests. The Test Explorer provides you a number of different ways to run your tests. Tests which were not included in the last run are easy to identify because they are greyed out.



Action
Type a search term into the search box. Show the listed tests change. Select a predefined filter by file path and filter results.

Dialogue
To quickly find tests of interest, you can use a search box to filter the tests displayed. You can search by properties of the test like FileName or Result.



Action
Click the group by to swap from status grouping to runtime grouping.

Dialogue
You can change the way your tests are grouped. Here we group by run time to find slow tests.



Action
Show NUnit test code in the editor. Start zoomed in on the NUnit using statement zoom out to show NUnit test code.

Dialogue
A major goal of the Visual Studio 2012 test experience is to enable developers to use the tools and processes that they are comfortable with. So, in addition to the "in-the-box" managed and C++ unit testing frameworks, you can install extensions to support third party frameworks.



Action
Choose Tools |  Extensions and Updates. Search online extensions for "unit test". Show multiple existing 3rd party frameworks, NUnit, xUnit, Chutzpah. 

Dialogue
You can install most third party frameworks right from the Visual Studio IDE by using the Extension Manager and the Visual Studio Gallery.



Action
Show Solution Explorer with multiple third party test project (NUnitTestProject, CppFooTestProject i.e. project names that include the framework name)

Dialogue
The Test Explorer supports running any combination of tests from a mixture of test frameworks.



Action
Choose Test/Code Coverage. Show the code coverage results window. (continue to use a solution that has a mixture of 3rd party framework tests.)

Dialogue
Code coverage is a valuable unit test metric. You can now get code coverage results for all your tests with a single click. 



Action
Mouse over the Run Tests After build button on Test Explorer window, show tooltip, and toggle it on.

Dialogue
With a single click you can turn on the continuous test runner which will run your tests automatically after you build.



Action
Choose Build / Rebuild Solution. Show build complete and test running.

Dialogue
The continuous test runner is optimized to get you results quickly by running the most important tests first. When those have passed it runs all your tests.



Action
Zoom over to a test run in progress with huge number of tests coming in. 

Dialogue
The Test Explorer in Visual Studio 2012 makes running and interacting with your tests easier and faster than ever before.  The continuous test runner makes running your tests a part of the build so you don't have to think about it.