Ask a questionAsk a question
 

AnswerDoes TFS have Code Coverage tools out of the box?

  • Monday, November 02, 2009 12:33 AMA n t Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    We need to do code coverage analysis. We are using TFS 2008 & I'm wondering if there is anything 'out of the box' that will do this (reports etc.) with a bit of seting up, or if it's a matter of creating code to do this?

    Many thanks for your thoughts on this

    @nt

Answers

  • Monday, November 02, 2009 5:00 AMEwald Hofman - Avanade Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    In the testrunconfig, you can enable Code Coverage.

    When you combine that with the Team Build, to execute the build regularly, you see the code coverage trend in the Quality Indicators report. Of course you can also create your own report in SSRS or Excel, because the code coverage is stored in the TfsWarehouse database and in the cube. It is fairly simple to create your own report.
    Ewald - Please remember to mark the replies as answers if they help.

    Ewald Hofman
    Blog: www.ewaldhofman.nl
    • Marked As Answer byA n t Monday, November 02, 2009 5:54 AM
    •  

All Replies

  • Monday, November 02, 2009 5:00 AMEwald Hofman - Avanade Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    In the testrunconfig, you can enable Code Coverage.

    When you combine that with the Team Build, to execute the build regularly, you see the code coverage trend in the Quality Indicators report. Of course you can also create your own report in SSRS or Excel, because the code coverage is stored in the TfsWarehouse database and in the cube. It is fairly simple to create your own report.
    Ewald - Please remember to mark the replies as answers if they help.

    Ewald Hofman
    Blog: www.ewaldhofman.nl
    • Marked As Answer byA n t Monday, November 02, 2009 5:54 AM
    •  
  • Monday, November 02, 2009 5:54 AMA n t Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Great! That got me on the right track. Thank you.

    I have a further question. I want to do reporting on it. I'm geting the code coverage analysis in the Code coverage wndow, but can't find where this is persisted in the database. I'd expect it to be in the TFSWarehouse.RunCoverage table but there is nothing there. Any ideas where i can find this data?

    many thanks again


    @nt
    • Edited byA n t Tuesday, November 03, 2009 5:55 AMaditional question
    •