<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: TestNG with Cobertura</title>
	<atom:link href="http://techo-ecco.com/blog/testng-with-cobertura/feed/" rel="self" type="application/rss+xml" />
	<link>http://techo-ecco.com/blog/testng-with-cobertura/</link>
	<description>developer blog</description>
	<lastBuildDate>Sat, 15 Oct 2011 22:27:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sumit</title>
		<link>http://techo-ecco.com/blog/testng-with-cobertura/comment-page-1/#comment-1343</link>
		<dc:creator>Sumit</dc:creator>
		<pubDate>Sat, 18 Dec 2010 17:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://techo-ecco.com/blog/?p=198#comment-1343</guid>
		<description>Did it. Trick was setting instrumented files before the actual class files in the classpath :)</description>
		<content:encoded><![CDATA[<p>Did it. Trick was setting instrumented files before the actual class files in the classpath <img src='http://techo-ecco.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit</title>
		<link>http://techo-ecco.com/blog/testng-with-cobertura/comment-page-1/#comment-1339</link>
		<dc:creator>Sumit</dc:creator>
		<pubDate>Sat, 18 Dec 2010 13:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://techo-ecco.com/blog/?p=198#comment-1339</guid>
		<description>Hi Erez Mazor , i tried your suggestions with no success. 
Looking at the cobertura source code to figure out the sol.
Thanks for your help</description>
		<content:encoded><![CDATA[<p>Hi Erez Mazor , i tried your suggestions with no success.<br />
Looking at the cobertura source code to figure out the sol.<br />
Thanks for your help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erez</title>
		<link>http://techo-ecco.com/blog/testng-with-cobertura/comment-page-1/#comment-1214</link>
		<dc:creator>erez</dc:creator>
		<pubDate>Sat, 11 Dec 2010 10:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://techo-ecco.com/blog/?p=198#comment-1214</guid>
		<description>Sumit, a quick read through your code reveals some configuration issues, you are not defining the coverageDataFile correctly:

Add the following to your configuration:

[sourcecode language=&quot;xml&quot;]
 &lt;property key=&quot;cb.file&quot; value=&quot;${basedir}/cobertura.ser&quot; /&gt;  
[/sourcecode]

Change the &lt;strong&gt;net.sourceforge.cobertura.datafile&lt;/strong&gt; property to:

[sourcecode language=&quot;xml&quot;]
 &lt;sysproperty key=&quot;net.sourceforge.cobertura.datafile&quot; file=&quot;${cb.file}&quot; /&gt;  
[/sourcecode]

Change the &quot;clean&quot; target to:
[sourcecode language=&quot;xml&quot;]
&lt;delete file=&quot;${cb.file}&quot; /&gt;  
[/sourcecode]

Change the &quot;cb.instrument&quot; target to:
[sourcecode language=&quot;xml&quot;]
&lt;cobertura-instrument todir=&quot;${cb.instrument.dir}/&quot;  
                     maxmemory=&quot;512M&quot;  
                     datafile=&quot;${cb.file}&quot;&gt;  
...
[/sourcecode]

Do the same for the &lt;strong&gt;datafile&lt;/strong&gt; attribute in your &lt;strong&gt;cb.xml&lt;/strong&gt; and &lt;strong&gt;cb.html&lt;/strong&gt; targets.

I suspect cobertura instruments the code but cannot find the instrumentation file which why your getting 0 coverage.</description>
		<content:encoded><![CDATA[<p>Sumit, a quick read through your code reveals some configuration issues, you are not defining the coverageDataFile correctly:</p>
<p>Add the following to your configuration:</p>
<pre class="brush: xml; title: ; notranslate">
 &lt;property key=&quot;cb.file&quot; value=&quot;${basedir}/cobertura.ser&quot; /&gt;
</pre>
<p>Change the <strong>net.sourceforge.cobertura.datafile</strong> property to:</p>
<pre class="brush: xml; title: ; notranslate">
 &lt;sysproperty key=&quot;net.sourceforge.cobertura.datafile&quot; file=&quot;${cb.file}&quot; /&gt;
</pre>
<p>Change the &#8220;clean&#8221; target to:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;delete file=&quot;${cb.file}&quot; /&gt;
</pre>
<p>Change the &#8220;cb.instrument&#8221; target to:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;cobertura-instrument todir=&quot;${cb.instrument.dir}/&quot;
                     maxmemory=&quot;512M&quot;
                     datafile=&quot;${cb.file}&quot;&gt;
...
</pre>
<p>Do the same for the <strong>datafile</strong> attribute in your <strong>cb.xml</strong> and <strong>cb.html</strong> targets.</p>
<p>I suspect cobertura instruments the code but cannot find the instrumentation file which why your getting 0 coverage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit</title>
		<link>http://techo-ecco.com/blog/testng-with-cobertura/comment-page-1/#comment-1154</link>
		<dc:creator>Sumit</dc:creator>
		<pubDate>Fri, 10 Dec 2010 05:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://techo-ecco.com/blog/?p=198#comment-1154</guid>
		<description>sorry didn&#039;t knew that i can&#039;t submit a xml file here.
Here&#039;s a link to the file

http://www.coderanch.com/t/519974/Testing/code-coverage-output-Cobertura-Testng</description>
		<content:encoded><![CDATA[<p>sorry didn&#8217;t knew that i can&#8217;t submit a xml file here.<br />
Here&#8217;s a link to the file</p>
<p><a href="http://www.coderanch.com/t/519974/Testing/code-coverage-output-Cobertura-Testng" rel="nofollow">http://www.coderanch.com/t/519974/Testing/code-coverage-output-Cobertura-Testng</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit</title>
		<link>http://techo-ecco.com/blog/testng-with-cobertura/comment-page-1/#comment-1153</link>
		<dc:creator>Sumit</dc:creator>
		<pubDate>Fri, 10 Dec 2010 05:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://techo-ecco.com/blog/?p=198#comment-1153</guid>
		<description>still can&#039;t figure out. Can you help me please
One thing more to know. Another ant script runs first and places my source compiled jar file to /testlib.
</description>
		<content:encoded><![CDATA[<p>still can&#8217;t figure out. Can you help me please<br />
One thing more to know. Another ant script runs first and places my source compiled jar file to /testlib.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erez</title>
		<link>http://techo-ecco.com/blog/testng-with-cobertura/comment-page-1/#comment-1114</link>
		<dc:creator>erez</dc:creator>
		<pubDate>Wed, 08 Dec 2010 06:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://techo-ecco.com/blog/?p=198#comment-1114</guid>
		<description>The cobertura.ser data file is created by Cobertura and not by TestNG, it contains the instrumentation data about your tests as they are run. A coverage of 0 in the reports usually means the classpath is not configured correctly (i.e., cobertura cannot find the instrumented classes). Make sure you define the source (test classes) classpath and the target (source classes) correctly.</description>
		<content:encoded><![CDATA[<p>The cobertura.ser data file is created by Cobertura and not by TestNG, it contains the instrumentation data about your tests as they are run. A coverage of 0 in the reports usually means the classpath is not configured correctly (i.e., cobertura cannot find the instrumented classes). Make sure you define the source (test classes) classpath and the target (source classes) correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit</title>
		<link>http://techo-ecco.com/blog/testng-with-cobertura/comment-page-1/#comment-1112</link>
		<dc:creator>Sumit</dc:creator>
		<pubDate>Wed, 08 Dec 2010 05:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://techo-ecco.com/blog/?p=198#comment-1112</guid>
		<description>Its good documentation, however i fail to understand how dataFile works.
Does cobertura creates it or testng task creates it.
I got the report but the coverage is 0. Can&#039;t figure out how to get the coverage.
My tests shows proper coverage using the eclipse plugin.
Please help</description>
		<content:encoded><![CDATA[<p>Its good documentation, however i fail to understand how dataFile works.<br />
Does cobertura creates it or testng task creates it.<br />
I got the report but the coverage is 0. Can&#8217;t figure out how to get the coverage.<br />
My tests shows proper coverage using the eclipse plugin.<br />
Please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cedric</title>
		<link>http://techo-ecco.com/blog/testng-with-cobertura/comment-page-1/#comment-184</link>
		<dc:creator>Cedric</dc:creator>
		<pubDate>Thu, 24 Jun 2010 02:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://techo-ecco.com/blog/?p=198#comment-184</guid>
		<description>Thanks for these detailed instructions, I added a link to your post to the TestNG documentation:

http://testng.org/doc/misc.html</description>
		<content:encoded><![CDATA[<p>Thanks for these detailed instructions, I added a link to your post to the TestNG documentation:</p>
<p><a href="http://testng.org/doc/misc.html" rel="nofollow">http://testng.org/doc/misc.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

