Test Explorer Window In Visual Studio 2012

Feeds

RSS Feed

<< September | October | November >>

Sunday, 21st October 2012

The test explorer window in Visual Studio 2012 is a feature that we have wanted for a long time and despite some minor teething issues (the first version didn't allow grouping / running by test category) it is actually very cool.

So here is a feature you might not have noticed.

There is a little search bar next to the "Run on build" and "Grouping" icons that you can use to filter the results. For example, if I type in "Authenticate" it just shows me test methods containing the word "Authenticate". This is the obvious use of the search box - but it is much smarter.

For example, if you want to view all the tests in your "SpecialProject.Integration.Tests" project, you can use the following in the search box to get those tests:

FullName:"SpecialProject.Integration.Tests"

There are other smart filters too:

Result:"Passed"

Result:"Failed"

FilePath:"C:\SpecialProject.Tests\MyTest.cs"


So you can use these to filter your test explorer window to your heart's content.

You Are Here: Home » Blog » Test Explorer Window In Visual Studio 2012