views:

30

answers:

4

i'm using vs2010's standart unit tests, for example, i want to get all information like used variables with their values, called functions, etc. in readable form, xml forexample. how can i do it?

+1  A: 

You are looking for code coverage. Not sure if this built into the VS unit tests. I used to use NCover if I ever needed such a metric.

leppie
How did you get code coverage from that? I'm impressed. VS2010 includes code coverage. http://blogs.objectsharp.com/cs/blogs/dave/archive/2009/10/27/code-coverage-in-vs2010.aspx
mlk
A: 

Which version of VS 2010 do you have? If you have Premium or Ultimate you can take a look at this: http://social.msdn.microsoft.com/Forums/en/vsunittest/thread/eb7f6c78-c4ea-4020-a22e-db0e43d4a167

Paw Baltzersen
A: 

You can get all functions calls and function parameters using Runtime Flow (developed by me).

Sergey Vlasov
A: 

right click on a test -> Create Performance Session.

That way you can profile your test. Using the Instrumentation option, you'll get: function call counts and timing.

eglasius