<?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: Test Code Coverage in a Grails app with Cobertura</title>
	<atom:link href="http://www.piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 21 Jun 2010 07:16:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Todd McGrath</title>
		<link>http://www.piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/comment-page-1/#comment-6</link>
		<dc:creator>Todd McGrath</dc:creator>
		<pubDate>Tue, 29 Jan 2008 21:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/#comment-6</guid>
		<description>Great job, I look forward to trying this out</description>
		<content:encoded><![CDATA[<p>Great job, I look forward to trying this out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernd Schiffer</title>
		<link>http://www.piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/comment-page-1/#comment-5</link>
		<dc:creator>Bernd Schiffer</dc:creator>
		<pubDate>Tue, 29 Jan 2008 08:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/#comment-5</guid>
		<description>Another issue: I use your plugin on a hudson continuous integration server. Hudson has a plugin for Cobertura Reports, but needs a coverage.xml. You could generate this xml if you add a parameter to the cobertura-report task call like this:

Ant.&#039;cobertura-report&#039;(destDir:&quot;${coverageReportDir}&quot;, datafile:&quot;${dataFile}&quot;, format:&#039;xml&#039;)

See the format parameter? This lets your plugin generate the usual html report and a coverage.xml, which can be used by hudson.</description>
		<content:encoded><![CDATA[<p>Another issue: I use your plugin on a hudson continuous integration server. Hudson has a plugin for Cobertura Reports, but needs a coverage.xml. You could generate this xml if you add a parameter to the cobertura-report task call like this:</p>
<p>Ant.&#8217;cobertura-report&#8217;(destDir:&#8221;${coverageReportDir}&#8221;, datafile:&#8221;${dataFile}&#8221;, format:&#8217;xml&#8217;)</p>
<p>See the format parameter? This lets your plugin generate the usual html report and a coverage.xml, which can be used by hudson.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernd Schiffer</title>
		<link>http://www.piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/comment-page-1/#comment-4</link>
		<dc:creator>Bernd Schiffer</dc:creator>
		<pubDate>Mon, 28 Jan 2008 21:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/#comment-4</guid>
		<description>Great, works fine now for me. Thank you very much!

You should set the &#039;dependsOn&#039; variable in CoberturaGrailsPlugin.groovy, so that one with a Grails installation before 1.0-RC4 (like me with my 1.0-RC3 installation) will get a warning that she should upgrade.</description>
		<content:encoded><![CDATA[<p>Great, works fine now for me. Thank you very much!</p>
<p>You should set the &#8216;dependsOn&#8217; variable in CoberturaGrailsPlugin.groovy, so that one with a Grails installation before 1.0-RC4 (like me with my 1.0-RC3 installation) will get a warning that she should upgrade.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/comment-page-1/#comment-3</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 28 Jan 2008 16:53:02 +0000</pubDate>
		<guid isPermaLink="false">http://piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/#comment-3</guid>
		<description>These both might be related to the version of Grails you&#039;re running?  I developed the plugin using the latest Grails code from SVN, so it&#039;s probably not backwards compatible

1) The pluginHome variable was just implemented in Grails SVN over the weekend.  In the meantime, your workaround will work just fine.

2) testDirPath is supposed to be where your test classes are compiled to.  In Grails 0.6 I think that was {your_app}/test/classes.  In the most recent version, Grails sets this to be:
&lt;pre lang=&quot;groovy&quot;&gt;testDirPath = System.getProperty(&quot;grails.project.test.class.dir&quot;) ?: &quot;${userHome}/.grails/${grailsVersion}/projects/${baseName}/test-classes&quot;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>These both might be related to the version of Grails you&#8217;re running?  I developed the plugin using the latest Grails code from SVN, so it&#8217;s probably not backwards compatible</p>
<p>1) The pluginHome variable was just implemented in Grails SVN over the weekend.  In the meantime, your workaround will work just fine.</p>
<p>2) testDirPath is supposed to be where your test classes are compiled to.  In Grails 0.6 I think that was {your_app}/test/classes.  In the most recent version, Grails sets this to be:</p>

<div class="wp_syntax"><div class="code"><pre class="groovy">testDirPath <span style="color: #66cc66;">=</span> <span style="color: #aaaadd; font-weight: bold;">System</span>.<span style="color: #006600;">getProperty</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;grails.project.test.class.dir&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">?</span>: <span style="color: #ff0000;">&quot;${userHome}/.grails/${grailsVersion}/projects/${baseName}/test-classes&quot;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Bernd Schiffer</title>
		<link>http://www.piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/comment-page-1/#comment-2</link>
		<dc:creator>Bernd Schiffer</dc:creator>
		<pubDate>Mon, 28 Jan 2008 16:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://piragua.com/2008/01/26/test-code-coverage-in-a-grails-app-with-cobertura/#comment-2</guid>
		<description>I had problems running your plugin:
1.) pluginHome could not be found so I defined it like this

pluginHome = new File(&quot;./plugins&quot;).listFiles().find { it.name.startsWith(&quot;cobertura&quot;)}

2.) testDirPath could not be found, and I don&#039;t know, which directory this could be. Could you please send me a hint?</description>
		<content:encoded><![CDATA[<p>I had problems running your plugin:<br />
1.) pluginHome could not be found so I defined it like this</p>
<p>pluginHome = new File(&#8220;./plugins&#8221;).listFiles().find { it.name.startsWith(&#8220;cobertura&#8221;)}</p>
<p>2.) testDirPath could not be found, and I don&#8217;t know, which directory this could be. Could you please send me a hint?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
