mstest with config files requires vs2008 prompt first

Code profiling for .NET Developers

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

mstest with config files requires vs2008 prompt first

Postby amccool » Fri Jan 21, 2011 10:46 pm

I'm unable to run mstest directly on my tests without first starting the Visual Studio 2008 Command Prompt. (DeploymentItem configuration file are not successfully located at runtime)

This is preventing me from setting up the profiler to profile my unit tests.

mstest /testcontainer:XXXX.dll /test:myWCFclientTest

Is there some way I can call vsvars.bat before I start executing my unit tests via mstest.exe ?
amccool
 
Posts: 1
Joined: Fri Jan 21, 2011 10:28 pm

Postby Brian Donahue » Mon Jan 24, 2011 11:01 am

Thanks for your question. ANTS Profiler doesn't have any pre/post profiling action capability, but if it were me, I would make sure "profile child processes" is switched on, create a single batch file that runs everything you need and tell profiler to profile a desktop application and point it at cmd.exe.

c:\\windows\\system32\\cmd.exe /c "mytest.bat"
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 1 guest