Andrew Stopford's Weblog

poobah

News

Articles

MbUnit Folks

Old Blogs

Mono FieldStat

I based this post from a post by Sebastien Pouliot, I was so thrilled that I wanted to write it up here. 

Chris Gameweld was a student on this years Mono SoC project and has worked on creating a tool to improve the unit test coverage within the Mono code base. The end result was a tool called FieldStat that checks the frequency of how often methods are called, when used with code coverage results in a test you can see where tests need be shored up. Chris has an interesting proposal.

An approach for favoring the important but uncovered code involves an algorithm that is capable of ranking the importance of code. CodeRank is a technique that is similar in spirit with Google’s PageRank –- important methods link to other important methods. The CodeRank creates an ordered ranking of all the methods where each rating assigned to a method gives its relative percent importance. This rating can be scaled by other factors including call frequency.

FieldStat is using CodeRank and producing some interesting results

A very useful tool in a testers tool box. 

Comments

Noticias externas said:

I based this post from a post by Sebastien Pouliot , I was so thrilled that I wanted to write it up here

# September 13, 2007 12:09 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)