Ask a questionAsk a question
 

AnswerNo code coverage reporting in Quality Indicator Report

  • Tuesday, November 03, 2009 10:39 PMA n t Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I'm getting a flat (purple) line for Code coverage in the Quality Indicator Report. However you can see code coverage indicators in the Code coverage results window in the Test menu.

    Where would this data be stored? I look in TFSWarehouse but could not find it anywhere. (Build Coverage? No data in there)

    Would there be a reason it is not being persisted to the database? I'm thinking this could be the issue

    Thanks for all your help. I'm desperate to fix this issue.
    @nt

Answers

  • Thursday, November 05, 2009 7:41 AMEwald Hofman - Avanade Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Yes, you need to configure a build that is running tests. The Quality Indicators report will then show the code coverage for you.
    Ewald - Please remember to mark the replies as answers if they help.

    Ewald Hofman
    Blog: www.ewaldhofman.nl
    • Marked As Answer byA n t Friday, November 06, 2009 3:18 AM
    •  

All Replies

  • Wednesday, November 04, 2009 9:56 AMEwald Hofman - Avanade Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    The Code Coverage is collected by Team Build. Did you create a build and run the tests with that build? Are you using a testrunconfig in that build which has code coverage enabled?
    Ewald - Please remember to mark the replies as answers if they help.

    Ewald Hofman
    Blog: www.ewaldhofman.nl
  • Thursday, November 05, 2009 4:48 AMA n t Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Ewald,

    I really appreciate your reply.

    Our build definition does not include running any tests. We do have a couple of testrunconfigs but the are not being used in the builds. I'm guessing your'e suggesting that this needs to be done for code coverage data to be persisted to TFSWarehouse?

    Again, thanks for your time in answering this. I was really at an end as to what to do next

    @nt
  • Thursday, November 05, 2009 7:41 AMEwald Hofman - Avanade Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Yes, you need to configure a build that is running tests. The Quality Indicators report will then show the code coverage for you.
    Ewald - Please remember to mark the replies as answers if they help.

    Ewald Hofman
    Blog: www.ewaldhofman.nl
    • Marked As Answer byA n t Friday, November 06, 2009 3:18 AM
    •  
  • Friday, November 06, 2009 3:19 AMA n t Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks Ewald, that was the confirmation I was looking for.

    Much appreciate your help on this one.

    Have a good day
    @nt