Is it possible to profile MSTest unit tests in Visual Studio 2012 Ultimate without using any external profiling tools?
相关问题
- Dependencies while implementing Mocking in Junit4
- How to unit test a reactive component where ngCont
- Access for global variables JavaScript unit testin
- Googletest Parametrized tests crash
- Resharper 7 on VS2012 ignores assembly redirect in
相关文章
- How to replace file-access references for a module
- How to mock methods return object with deleted cop
- What is a good way of cleaning up after a unit tes
-
EF6 DbSet
returns null in Moq - Profiling Django with PyCharm
- Visual Studio Hangs on Loading UI Library
- React testing library: Test attribute / prop
- React/JestJS/Enzyme: How to test for ref function?
In Visual Studio 2015, follow the instructions Cybermaxs gives, but select
TE.ProcessHost.Managed
. Unfortunately, there appear to be two of them, so you must select the one with higher CPU usage.This feature was added back in the upcoming Visual Studio 2012 Quarterly Update 1. Right-click the test you want to profile in the Test Explorer and select "Profile Test" from the context menu.
In Visual Studio it was a really powerful feature ! As you, I can not find it in VS2012 (no references in MSDN or in blogs, ...)
Now, the only solution I have found for profiling Unit Test is to Attach the Profiler to a Process called vstest.executionengine.x86.exe (x86 for me but this could be different for 64 bits)
You can do this in the Tab "Performance Explorer" after a right click.
Once the profiler is starting, you can run as many tests as you want. Then stop profiling and you will see all details of this session.
There are 2 caveats with this technique :
Hope this will help you.