Daily using/supporting

Get Firefox browser!
Get Thunderbird!
Get Opera browser!
Get The Gimp!
Get Inkscape!
Get LibreOffice!
Get Videolan!
Get Linux!
Get Mandriva!
Get Joomla!
Hacker Emblem

Archives

Which topics would you like us to cover more?

Latest comments

Latest tweets

about 1 day ago Using REDIPS.drag to add drag and drop to your .Net webapplication #li #dib0 http://t.co/n8zY3s7d
about 7 days ago http://t.co/cknQcDbo #Kindle
about 15 days ago Freedom isn't the ability to choose what to do or say, but the ability to choose what not to do or say #freedom
about 29 days ago http://t.co/61KTQknI #Kindle
12 Apr 2012 Force the use of a networking adapter using C# #li #dib0 http://t.co/ZTJOPzOz
9 Apr 2012 Mandriva 2010.2 and USB devices in Virtualbox http://t.co/fwq9gbHB
9 Apr 2012 Execute a http request to you own site with PHP http://t.co/DIvWPrpd
Measuring code quality
Written by Division by Zero   
Tuesday, 11 May 2010 21:54

While trying to weekly report the quality of our software, We had a lot of discussion about what numbers to use. None of the quality calculations really represent reality. Actually, I believe it's impossible the calculate code quality, because it needs human interpretation. We have two pillars in our weekly quality report, the first is a human pillar, the second is a calculated one. The human factor we use is if code reviews were doMeasurene. In my opinion this is the most important one.

The second pillar is the calculated one. The information we have, at this time, is code coverage. Because we work with a lot of "pre-unittest" code the developers weren't actually happy with the use of code coverage. This is the way we now use to represent the change in code over the last week and the effect the changes had on code coverage (a colleague came up with the calculation).

Difference in coverage (percentage) over the last week = ((Ct - Cl) / T) - ((Nt - Nl) / T)

These are the variables:
Ct = Covered code blocks this week
Cl = Non-covered code blocks this week
Nt = Covered code blocks this week
Nl = Non-covered code blocks this week
T = |(Ct - Cl) + (Nt - Nl)| = The total difference in code blocks

Translated the percentage is the percentage of growth of covered blocks minus the percentage of growth of non-covered blocks. If this is a positive percentage there was a positive effect on the code coverage. If the percentage should be above some kind of norm. We chose above 75% = good and below -75% is bad.

Another colleague suggested one of the following metrics:

The last one isn't so much about quality, but more about risk. But the first one probably is usable. Probably we have to study some more on a usable metric and how to use it in our daily builds. If we have a better metric, I'll let you know. If you have any suggestions, please, let me know!

Tags:
 

Add comment


Security code
Refresh

They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin


© 2009 - 2012, Division by Zero

Template based on the empire template by joomlashack 

Valid XHTML 1.0 Strict  Valid CSS!  Creative Commons License
This work by Division by Zero is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.