Richard Smith's Blog

The thoughts of an easily distracted software developer...

Profiling a unit test in VS2012

Just a quick useful tip, you can run the Visual Studio profiler on a unit test. It’s fairly well hidden but you can access it by right-clicking on a test in the “Test Explorer” and selecting “Profile Test”:

../../../_images/profiling_a_unit_test_in_vs2012_1.png

Very useful and well hidden feature.