Community & Support
Skip Navigation LinksHome / Announcements / Forums / TFS Work Item Manager and Project Dashboard: TFS Project Dashboard > Code Coverage - No Data Series

Not answered Code Coverage - No Data Series

Feed from this thread
  • Anders avatar

    Posted on Sep 2, 2010 (permalink)

    We are really struggling to get the Code Coverage widget to work. All other widgets are working fine.
    I have searched the log files for clues, but nothing seems to be wrong, no error messages.

    Testes are run by the TFS Build script.

    Is there anything we need to check, e.g. check boxes, or something special we need to add in the TFS Build script?

    I am really hoping for some magic here...

    Anders...

    Reply

  • Joel Joel admin's avatar

    Posted on Sep 7, 2010 (permalink)

    Hi Anders,

    Please check the dashboard configuration to ensure that at least one build is chosen for the code coverage widget (see attached screenshot).  If that doesn't work, then please verify that there is code coverage data in the warehouse.  You can do this by connecting to the TFS warehouse with excel. 

    Also please note that there is currently a bug where the code coverage widget is off by one so it is one build behind.  You will need to have run the build at least twice for data to show up in the widget.  The bug has been fixed as will be part of a future release.

    Regards,
    Joel
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Attached files

    Reply

  • Mike avatar

    Posted on Jul 19, 2011 (permalink)



    <br>2011-07-19 11:05:26,310 [4056] [18] DEBUG IRC.Gear.WorkItemManager.Dashboard.TfsDataProvider.BuildDataProvider - GetCodeChurnData.   <br>2011-07-19 11:05:26,311 [4056] [18] DEBUG IRC.Gear.WorkItemManager.Dashboard.TfsDataProvider.BuildDataProvider - GetCodeChurnData - Settings - Project: Weedle || Build Types: Integration.Continuous.All || Num Builds: 15.   <br>2011-07-19 11:05:26,312 [4056] [18] DEBUG IRC.Gear.WorkItemManager.Dashboard.TfsDataProvider.TfsWarehouse - RetrieveCodeChurn - Command text: SELECT {[Measures].[Lines Added],[Measures].[Lines Deleted],[Measures].[Lines Modified],[Measures].[Total Churn]} DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS , NON EMPTY CrossJoin(CrossJoin([Team Project].[Team Project Hierarchy].&[{eaa5252f-b87a-418b-af43-58b221ceff04}], Hierarchize({DrilldownLevel({[Build].[Build Definition Name].[All]})})), Hierarchize({DrilldownLevel({[Build].[Build].[All]})})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON ROWS FROM (SELECT ({[Build].[Build Definition Name].&[Integration.Continuous.All]}) ON COLUMNS  FROM [Team System]) CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS.   <br>2011-07-19 11:05:26,313 [4056] [18] INFO  IRC.Gear.WorkItemManager.Dashboard.TfsDataProvider.TfsWarehouse - Attempting to connect to TFS Warehouse - Connection String: Data Source=WEEDTFSSQL01;Catalog=Tfs_AnalysisServices.   <br>2011-07-19 11:05:26,319 [4056] [18] INFO  IRC.Gear.WorkItemManager.Dashboard.TfsDataProvider.TfsWarehouse - Connection to TFS Warehouse established..   <br>2011-07-19 11:05:26,382 [4056] [18] DEBUG IRC.Gear.WorkItemManager.Dashboard.TfsDataProvider.TfsWarehouse - RetrieveCodeChurn - Build count: 0.   <br>2011-07-19 11:05:26,384 [4056] [18] DEBUG IRC.Gear.WorkItemManager.Dashboard.TfsDataProvider.BuildDataProvider - GetCodeChurnData - Successfully retrieved code churn data for the last 0 builds. 

    This may have been answered elsewhere or I am missing something.

    I have dashboard running on win2008 Server 64bit. My TFS is 2010. I cannot seem to get dashboard to render the code chuirn data. I connected to analysis service with excel and all underlying data appears correct.   The log does not appear to throw any exceptions/connection issues but interestingly reports it retrieved data for 0 builds although interface/config states 15.

    I have attached log detail and config section for code churn.

    Appreciate any insight

    Thanks

    Reply

  • Joel Joel admin's avatar

    Posted on Jul 25, 2011 (permalink)

    Hi Mike,

    From the log file it looks like you have 15 build types in your project and you have selected one of them (Integration.Continuous.All) to show code churn data for.  Can you confirm that this is correct?  Also can you confirm that you have code coverage enabled for this build?

    You mentioned that you used excel to view code coverage data but it's possible that some other build is writing code coverage data to the warehouse.  If this is the case then the dashboard will not show info for those builds because only the one build is selected.

    The log file also writes out the actual MDX query that is used to retrieve data from the TFS warehous.  Would you be able to connect to the warehouse directly using SQL Management Studio, run the query below, and let us know the results:

    SELECT {[Measures].[Lines Added],[Measures].[Lines Deleted],[Measures].[Lines Modified],[Measures].[Total Churn]} DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS , NON EMPTY CrossJoin(CrossJoin([Team Project].[Team Project Hierarchy].&[{eaa5252f-b87a-418b-af43-58b221ceff04}], Hierarchize({DrilldownLevel({[Build].[Build Definition Name].[All]})})), Hierarchize({DrilldownLevel({[Build].[Build].[All]})})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON ROWS FROM (SELECT ({[Build].[Build Definition Name].&[Integration.Continuous.All]}) ON COLUMNS  FROM [Team System]) CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS

    Regards,
    Joel
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

Back to Top

Skip Navigation LinksHome / Announcements / Forums / TFS Work Item Manager and Project Dashboard: TFS Project Dashboard > Code Coverage - No Data Series