Wednesday, July 14, 2004

After this afternoon crash of the blog, it is time to get back to some fun activities...and today code coverage is the program. I will be using NCover (gotdotnet) but other tools could apply also.

There is one thing that strikes me with code coverage: there is almost no efficient tool to visualize coverage (I'm leaving aside Team System for now). Usually the framework that compute the coverage already have a big job to do with computing it, and the visualization is somehow "left to the user". It seems to me that this part of the job is not trivial also because of the quantity of information that has to be processed: an assembly can have hundreds of types, thousands of methods. This motivates the introduction of some new...  Reflector Addins for code coverage visualization.

Coverage in a TreeMap

A natural way of visualizing coverage is to use the TreeMap that I was previously using for the Type TreeMap addin.With some minor modifications, we have the following result: the figure shows the test coverage of NCollection project (green is fullly covered, red is not covered).

NCover and Reflector

The most difficult/annoying part of this work was to create the bridge between NCover and Reflector, because of slight difference in the way name, assembly and modules are named.

posted on Wednesday, July 14, 2004 11:02:00 AM UTC  #    Comments [10]
Tracked by:
http://www.google.com/search?q=kiqagsej [Pingback]
http://www.google.com/search?q=wylgpvtu [Pingback]
http://www.google.com/search?q=hchnhgua [Pingback]
"ice wine tea" (online) [Trackback]
"fleetwood rv" (online) [Trackback]
"Phentermine." (Phentermine 37 5mg.) [Trackback]
Monday, June 06, 2005 5:49:31 PM UTC
Nice!!, could you post this??
Sean Harvell
Monday, June 06, 2005 5:49:32 PM UTC
I'll post this in the next release of my <a title="Reflector" href="http://www.aisto.com/roeder/dotnet/" target="_blank">Reflector</a> addins.
Jonathan de Halleux
Monday, June 06, 2005 5:49:32 PM UTC
How do I get the NCover analysis to show up in the window? Everything I have is green.
Carlton Nettleton
Monday, June 06, 2005 5:49:32 PM UTC
Right click on the view and load the NCover file for the assembly
Jonathan de Halleux
Monday, June 06, 2005 5:49:33 PM UTC
What do you mean by view? The &quot;typeTreeMap&quot;?
<br>
<br>I tired loading the coverage.xml file and it gives me an error. I must NOT be doing something that you are.
Carlton Nettleton
Monday, June 06, 2005 5:49:33 PM UTC
Please get the latest snapshot of the NCover CVS it contains this
<br><a target="_new" href="http://blog.dotnetwiki.org/archive/2004/07/17/603.aspx">http://blog.dotnetwiki.org/archive/2004/07/17/603.aspx</a>
<br>
<br>and this <a target="_new" href="http://blog.dotnetwiki.org/archive/2004/07/17/604.aspx">http://blog.dotnetwiki.org/archive/2004/07/17/604.aspx</a>
<br>
<br>and this
<br><a target="_new" href="http://blog.dotnetwiki.org/archive/2004/07/17/605.aspx">http://blog.dotnetwiki.org/archive/2004/07/17/605.aspx</a>
Jonathan de Halleux
Monday, June 06, 2005 5:49:34 PM UTC
How do I get the NCover analysis to show up in the window?
Antivirus
Thursday, October 13, 2005 1:54:17 PM UTC
Hello!I found here a plenty of useful information for myself! I will visit you soon...
Thursday, October 13, 2005 1:57:30 PM UTC
The interesting information located on your page
Friday, October 21, 2005 8:46:47 AM UTC
Hello. I just wanted to give a quick greeting and tell you I enjoyed reading your material
Comments are closed.