This morning when running my tests, I noticed that one test was really slow.
You don’t want your test suite to be slow as people will stop running the tests when it takes too much time. So time to figure out what is causing this behavior.
Turns out that this is is pretty easy in Visual Studio 2013 (and 2015):
- Open up the Test Explorer window
- Right click on the slow test and choose Profile Test.
- This will load a Performance Profiling session for the specific test.