Visual Studio Development Bookmark and Share   
 index > Visual Studio Extensibility > Loading test results and code coverage information through code
 

Loading test results and code coverage information through code

Hi all,

Is there any API for finding the last test run details, e.g. the the test results and code coverage information? I know
that I can do this by simply looking through the folder structure but it seems a bit low level.

I am developing an add-in and need this information for the currently loaded solution.

Regards
/Jakob

OsirisJakob  Monday, February 16, 2009 7:55 AM
Hello,

You would like to checkthis useful post, theyhave same requirement as you,and seems got a way to gather the code coverage informationprogrammatically, hope can give you some advice.

Sincerely!
Please mark the replies as answers if they help and unmark them if they provide no help.
Wesley Yao  Friday, February 20, 2009 3:58 AM
Hi Wesley, thanks for your reply!

I already had this information actually, so loading the code coverage and extracting info from it was pretty easy. The part I was wondering about is how to, from a VS.NET addin,
locate the latest test run and the associated code coverage file.

I have implemented this now, by simply traversing the folder structure (e.g. the TestResults folder beneath the solution folder) but it feels a bit low-level and I am not sure that this folder structure will always be the same?

Regards
/Jakob
OsirisJakob  Friday, February 20, 2009 8:28 AM

You can use google to search for other answers

Custom Search

More Threads

• C# Add-In : IVSWindowFrame returns -2147188314
• DSL Tools: Connectors duplicated on re-loading model.
• Common store for all the models in a shell
• Installing Custom Web Controls
• Adding DLL
• Monitoring changes in the properties window?
• Addin path
• [VS 2008 BUG?] Post-build commands interpreted as a single command
• Programmatically accessing code coverage window results
• DSL In VS Shell: Updating DSL Does Not Affect Integrated Solution