Solved

How to Publish .Coverage data to TFS...

Posted on 2012-03-21
7
831 Views
Last Modified: 2012-04-17
I'm using Visual Studio 2010, and I'm running code coverage for manual testing.  I have the coverage file, and can see it in Visual Studio, but I'd like to figure out how to publish the results into TFS.

1) how do I publish it.  (I keep seeing references to this, but nobody says how, and I don't see it)

2) Where can I publish it in TFS?  to a Build, to a test plan/task?  etc...

Thanks.

I should include that this was generated by use of the command lines
vsinstr /coverage bob.exe      
vsperfcmd /start:coverage /output:"bob.coverage"
>>>  DO MANUAL TESTS HERE <<<
vsperfcmd /shutdown
0
Comment
Question by:hpdvs2
  • 4
  • 3
7 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 37752173
Let me start by saying that I am not sure how either, but I am always curious by these types of questions, as they stimulate outside-the-box thinking...

"I keep seeing references to this"
It might make the searches faster to share some of those references.

I will assume that you are talking about Team Foundation Server 2010, unless otherwise indicated.
0
 
LVL 8

Author Comment

by:hpdvs2
ID: 37780147
yes, Visual Studio 2010, TFS 2010.

- "I keep seeing references to this"
 - Here for instance: http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/b62a600c-be67-4112-8e1a-5f63bbf181b9#6c1ec90e-ca20-411a-80e2-7e2eb5bedd5f
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 37781101
Very interestink...

More clues:

http://social.msdn.microsoft.com/Forums/is/tfsbuild/thread/a160af74-b198-45be-a8a1-31555691e987

"The code coverage data is stored in the RunCoverage table in the TfsBuild database."

It seems to be related to the TFS Build process.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 37781115
Creating Fake builds in TFS Build 2010
http://blogs.msdn.com/b/jpricket/archive/2010/02/23/creating-fake-builds-in-tfs-build-2010.aspx

http://blogs.msdn.com/b/densto/archive/2010/03/02/creating-fake-builds-in-tfs-2010.aspx

"Sometimes it can be useful to create “fake” builds in Team Foundation Server in order to successfully use other ALM features in the product."
0
 
LVL 8

Author Comment

by:hpdvs2
ID: 37856677
so, does this mean I have to "fake" a build in TFS to tie code coverage to it?
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 37856685
I couldn't find any other way, but that doesn't mean that one doesn't exist.  It just means that it is difficult to find the right "magic".
0
 
LVL 8

Author Closing Comment

by:hpdvs2
ID: 37858034
Wasn't the solution I was hoping for, but it works, and enough time has passed that I presume there isn't a better solution.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now