VS Studio Professional - Profiling a "test"

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

VS Studio Professional - Profiling a "test"

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

Hi,

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,
Markus
Cumulus
 
Posts: 1
Joined: Tue Jun 21, 2011 3:47 pm

Postby Brian Donahue » Tue Jun 21, 2011 4: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: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby Laura Morley » Wed Jun 22, 2011 2: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: 34
Joined: Wed Jun 22, 2011 2:13 pm
Location: Red Gate Software


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 0 guests

cron