VS2012: Clear the test results in Test Explorer when re-running a test that previously failed

Coder_Dan picture Coder_Dan · Jul 4, 2013 · Viewed 8.8k times · Source

On running an individual test in VS2012, a window is shown at the bottom of Test Explorer that includes (assuming failure) a red icon with "Test Failed" next to it. There follows the failure message with "elapsed time" directly beneath.

I would like to know simply whether there is a way to clear this window. For instance if I right-click my test and select "Debug Selected Tests", it is somewhat confusing as I step through the test that this test-results window still shows the failure from a past test-run.

Answer

Sparkle picture Sparkle · Dec 9, 2014

Actually, there is a way - clean and then rebuild your solution. Previous test run results will clear right up.