Blog Post: TFS 2010 Code Churn Report – Getting Additional Detail


It’s great to see more TFS users use a tool they know, Excel, in conjunction with a tool they may not know so well, Analysis Services to answer questions about their software project.? The default TFS reports provide a great first level of detail but you will frequently need to get to the next (and next-next) levels of detail to answer questions about your project.? No matter what your role in the project the more you can visit the “self serve business intelligence counter” via Excel connected to the TFS data warehouse the more productive conversations you can have with your team.?

Turning “hmmm… we had a bunch of code churn yesterday” to “I see most of the code churn yesterday were added class files in our queuing component… is that related to the bug fix we approved yesterday?? I wouldn’t expect new files to be added for a bug fix”? Now that is real world and just one example how data can turn a conversation productive!

I’ll use the code churn as an example on how the default TFS reports are a great starting point for project information and how you will need to get some additional detail.

78879b32874067AE.jpg Blog Post: TFS 2010 Code Churn Report – Getting Additional Detail

On a project I’m involved with they use the TFS 2010 Build Quality Indicators Report, a default report in the Agile process template, to make sure most tests are passing and increasing in number, code coverage is at the target level and code churn is trending down as we close an iteration.

They hit a couple builds with high code coverage (see to the right, circled) and wanted to confirm if this was expected or not.? Here is how you can get more detail on code churn.

You can modify the existing default code churn report that comes in the Agile process template.? The example below I start with a new Excel workbook.

1. Follow the excellent instructions here, http://www.woodwardweb.com/vsts/getting_started.html, to connect Excel to your TFS Warehouse.

1aa8354bb1DCDDFA.jpg Blog Post: TFS 2010 Code Churn Report – Getting Additional Detail2. Add filters – Since the question I’m trying to answer is related to a particular build I’m going to drag the following dimensions from the pivot table field list to the report filter

3. Add Rows – I’m interested in what files have changes so I’m going to drag the Version Control File.File Hierarchy dimension from the pivot table filed list to the row label.? If I wanted to know who was churning code I could drag the “Version Control change set checked in by” dimension in to the row label instead.? Bonus – have both the checked in and File Hierarchy dimensions in your row label!

4. Add values – This is the “show me the money” moment!? Drag in the following calculated fields from the pivot table filed list into the values area.

Below is what your finished product should look like.? This will give you the “next” level of detail on what code churned and what type of change it was.? Since we are working with a pivot table connected to the Version control file file hierarchy dimension you can drill down to see churn down to the file level.

26df839d10E15780.jpg Blog Post: TFS 2010 Code Churn Report – Getting Additional Detail

My preference is to have these more detailed reports answer 1-2 questions really well instead of trying to create a “shock and awe” report that is flashy but difficult to take action on.? I save these in the TFS project SharePoint for other folks to use.

Once you have this basic report down you can begin spelunking into the other dimensions available to you in the data warehouse.? Enjoy!

logo msdn Blog Post: TFS 2010 Code Churn Report – Getting Additional DetailSource: Microsoft Sync Framework

Incoming search terms:


Comments

You must be logged in to post a comment.

Leave a Reply:

Name *

Mail (hidden) *

Website





Blog Post: News Flash: Try Windows Azure for One Month Free!

Blog Post: WebMatrix – making it easier to deploy Moodle, Joomla! and WordPress

Blog Post: Studie der Universität Erlangen-Nürnberg: Application Lifecycle Management (ALM) sorgt für erhebliche Kosteneinsparungen

Blog Post: Algumas palavras sobre Autenticação, Identidade e Autorização com Claims-based Identity

Blog Post: Best Practices for Building Reliable SQL Azure Database Client Applications

SyncToy – PC Magazine Best Free Software of 2010

Runtime Error 3146 Odbc Call Failed – Repair PC Errors Now !

DataRecovery: Recovering Deleted Hard Drive Data Made Easy

Microsoft Digital Forensics Tool Leaks Online

Migrate to Windows 7 Safely

Microsoft offers the affected Sidekick users a data recovery tool

Microsoft Begins Restoring Sidekick Data


allQoo SEO Posts