VS Studio Professional - Profiling a "test"

Code profiling for .NET Developers

VS Studio Professional - Profiling a "test"

Postby Cumulus » Tue Jun 21, 2011 2:59 pm


how can i profile a test from the test-view?
I am using VS-Studio Professional 2010 - with C#.

Using your competitors "dotTrace" i can just right-click the unit-test in the project-window and choose "profile unit test". (i hope mentioning a competitors product is not forbidden...)

However i am unable to find such an option in ANTS. :oops:
Since i much prefer the result-viewer of ANTS i would love to know a way to profile my unit-tests with ANTS.d

Any help is appreciated,
Posts: 1
Joined: Tue Jun 21, 2011 2:47 pm

Postby Brian Donahue » Tue Jun 21, 2011 3:31 pm

You can, but you have to understand the unit testing system. I swear there were some articles on our website about Nunit and MSTest, but I can't seem to find them.

Basically you can profile nunit-gui as a desktop application or profile the command-line with the arguments necessary to load the DLL. It shouldn't be too difficult but obviously not as easy as right-clicking somewhere.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Postby Laura Morley » Wed Jun 22, 2011 1:17 pm

These might be the articles here on the Red Gate support center site that Brian was referring to:

* Profiling unit tests using Nunit
* Profiling tests in MSTest

Does that help?
Laura Morley
Posts: 24
Joined: Wed Jun 22, 2011 1:13 pm
Location: Red Gate Software

Return to ANTS Performance Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests