in

wahooga.com

A report on life in Technical Support for a software company

Dave Mellors

Profiling with ANTS Profiler and MSTest

Had a question today from a customer interested in profiling his unit tests using MSTest which is part of the testing element of Visual Studio Team System. As I hadn't used MSTest before I decided to take a look and see if you could use it with ANTS Profiler.

After my first attempt at profiling only produced results for MSTest, I suspected that my tests were being run in a seperate process. Luckily MSTest has a /noisolation argument and once I used this everything ran as expected.

Share this post: email it! | bookmark it! | digg it! | reddit!

Comments

 

Thies Schrader said:

I have been trying to get the same set-up to work - and thank you for the /noisolation which is what stopped me. For those that find this blog and need more details on what to do, here are the arguments ANTS needs to get things rolling;

.NET desktop application:

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\mstest.exe      (or whereever your mstest.exe is located)

Working Directory:

c:\Projects\MyProject      (the root folder of your project)

Agruments:

/testcontainer:MSUnitTesting\bin\Debug\MSUnitTesting.dll /test:##inserttestnamehere## /noisolation      (note replace ##inserttestnamehere## with the name of the test you want to profile - remove this /test: option to profile everything)

My next step will be to get ANTS working with TestDriven.Net against my mstest-tests, so I can speed up the time it takes to profile tests.

December 13, 2007 1:09 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About Dave Mellors

I work for Red Gate Software in Cambridge, UK as part of the technical services team. This is my personal blog and so carries my own personal views which could vary from the views and opinions of my employer. I am passionate about IT and would like to change the way that people think about the IT industry and the people that work in it. Particularly those who work in the support teams.
Copyright 2007 Dave Mellors
Powered by Community Server (Non-Commercial Edition), by Telligent Systems