<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Rob van der Meijden : Daily build</title><link>http://bloggingabout.net/blogs/rob/archive/tags/Daily+build/default.aspx</link><description>Tags: Daily build</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Choosing between Ncover and Ncover</title><link>http://bloggingabout.net/blogs/rob/archive/2005/03/02/2347.aspx</link><pubDate>Wed, 02 Mar 2005 10:59:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:2347</guid><dc:creator>Rob van der Meijden</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rob/rsscomments.aspx?PostID=2347</wfw:commentRss><comments>http://bloggingabout.net/blogs/rob/archive/2005/03/02/2347.aspx#comments</comments><description>&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;font face="Arial" size="2"&gt;A little challenge for you, what wrong with the title &amp;hellip; ready &amp;hellip; absolutely nothing. There are currently two open source products which &amp;lsquo;cover&amp;rsquo; the same functionality and obviously have the same name &amp;hellip; Ncover. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;font face="Arial" size="2"&gt;I wanted to use a code coverage tool integrated in the daily build process. The build process was created with the use of &lt;/font&gt;&lt;a href="http://nant.sourceforge.net/"&gt;&lt;font face="Arial" size="2"&gt;Nant&lt;/font&gt;&lt;/a&gt;&lt;font face="Arial" size="2"&gt;, &lt;/font&gt;&lt;a href="http://www.nunit.org/"&gt;&lt;font face="Arial" size="2"&gt;Nunit&lt;/font&gt;&lt;/a&gt;&lt;font face="Arial" size="2"&gt; and &lt;/font&gt;&lt;a href="http://confluence.public.thoughtworks.org/display/CCNET"&gt;&lt;font face="Arial" size="2"&gt;CruiseControl.Net&lt;/font&gt;&lt;/a&gt;&lt;font face="Arial" size="2"&gt;. Both versions of Ncover can be used with these tools.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;font face="Arial" size="2"&gt;The first Ncover tool has been moved from GotDotNet to &lt;/font&gt;&lt;a href="http://www.ncover.org/"&gt;&lt;font face="Arial" size="2"&gt;www.ncover.org&lt;/font&gt;&lt;/a&gt;&lt;font face="Arial" size="2"&gt; (latest release dec 2004). This version has no integration with Nant, but has a command line interface which can be used along with the &lt;/font&gt;&lt;a href="http://nant.sourceforge.net/release/latest/help/tasks/exec.html"&gt;&lt;font face="Arial" size="2"&gt;Exec task&lt;/font&gt;&lt;/a&gt;&lt;font face="Arial" size="2"&gt; from Nant to implement a code coverage in the daily build.&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;font face="Arial" size="2"&gt;The second Ncover tool you can download at &lt;/font&gt;&lt;a href="http://sourceforge.net/projects/ncover/"&gt;&lt;font face="Arial" size="2"&gt;sourceforce&lt;/font&gt;&lt;/a&gt;&lt;font face="Arial" size="2"&gt; (latest release jun 2004) This version integrates with Nant by using its own tasks. You&amp;rsquo;ll need 4 tasks to get the coverage of you&amp;rsquo;re tests. The creepy thing about this tool is that the &lt;/font&gt;&lt;a href="http://ncover.sourceforge.net/nant-only-integration.html"&gt;&lt;font face="Arial" size="2"&gt;ncover task&lt;/font&gt;&lt;/a&gt;&lt;font face="Arial" size="2"&gt; has to &amp;lsquo;instrument&amp;rsquo; you&amp;rsquo;re code to create some helpers for the coverage process.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;font face="Arial" size="2"&gt;Based on the &amp;lsquo;instrument&amp;rsquo; issue I started with the first (&lt;/font&gt;&lt;a href="http://www.ncover.org/"&gt;&lt;font face="Arial" size="2"&gt;www.ncover.org&lt;/font&gt;&lt;/a&gt;&lt;font face="Arial" size="2"&gt;) Ncover tool. For each Nunit project within our solution I have created an &lt;/font&gt;&lt;a href="http://nant.sourceforge.net/release/latest/help/tasks/exec.html"&gt;&lt;font face="Arial" size="2"&gt;Exec task&lt;/font&gt;&lt;/a&gt;&lt;font face="Arial" size="2"&gt; to get a coverage of the code. Example:&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;
&lt;p class="MsoNormal"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commandline='/c &amp;quot;nunit-console.exe&amp;quot; &amp;quot;Project.nunit /xml=nunit-results.xml &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/out=nunit-results.output /nologo&amp;quot; &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /a AssemblyA;AssemblyB /o ncover-results.xml /l ncover.log'/&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;font face="Arial" size="2"&gt;You can parse the results with the standard coverage.xsl or with this &lt;/font&gt;&lt;a href="http://mbunit.tigris.org/source/browse/mbunit/src/MbUnit.Core/NCover/Attic/Coverage.xsl"&gt;&lt;font face="Arial" size="2"&gt;alternative&lt;/font&gt;&lt;/a&gt;&lt;font face="Arial" size="2"&gt; and it give&amp;rsquo;s you the coverage of the nunit tests within you&amp;rsquo;re solution. And of course we all have the following results:&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;span&gt;&lt;font face="Arial" size="2"&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&amp;nbsp;&lt;img height="184" src="/UserFiles/Rob van der Meijden/Image/20050302 ncover.jpg" width="436" alt="" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;See also a &lt;a href="http://blog.dotnetwiki.org/archive/2004/07/15/594.aspx"&gt;great tutorial&lt;/a&gt; for Ncover starters.&lt;/p&gt;
&lt;/font&gt;&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=2347" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rob/archive/tags/Daily+build/default.aspx">Daily build</category></item></channel></rss>