Run Tests under the Profiler
(Enterprise only)
In order to present memory usage information and perform memory assertions when running unit tests, the unit test runner must run under the profiler. The enterprise edition includes the possibility to easily use the Visual Studio test runner to run tests under the profiler.
The “Run Tests under the Profiler” command (under the Profiler menu) is used to create a unit testing session. As long as this session is active, all unit tests started using the Visual Studio test runner, will be run under this session. This includes the context menu commands in the code editor as well as the commands available in the Visual Studio Test Explorer.
Note
The unit test execution engine will be restarted when starting or stopping the unit testing session. Visual Studio may also restart the execution engine between tests. If the execution engine is restarted while profiling unit tests, the profiler will automatically profile the new execution engine process.
To stop profiling unit tests, de-select the “Run Tests under the Profiler” command, or stop the unit test profiling session.
For more information, see the What's new page.