Solved

How to Publish .Coverage data to TFS...

Posted on 2012-03-21
7
828 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

759 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

19 Experts available now in Live!

Get 1:1 Help Now