<?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: Using Rcov to measure the test coverage of Rails plugins</title>
	<atom:link href="http://thelucid.com/2007/08/24/using-rcov-to-measure-the-test-coverage-of-rails-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelucid.com/2007/08/24/using-rcov-to-measure-the-test-coverage-of-rails-plugins/</link>
	<description>The Lightweight Ramblings of Jamie Hill</description>
	<lastBuildDate>Tue, 31 Jan 2012 20:06:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ...Paul</title>
		<link>http://thelucid.com/2007/08/24/using-rcov-to-measure-the-test-coverage-of-rails-plugins/comment-page-1/#comment-2622</link>
		<dc:creator>...Paul</dc:creator>
		<pubDate>Wed, 01 Apr 2009 17:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://c533fc04-524b-4de6-bd09-fe3ed45a3a0f#comment-2622</guid>
		<description>FWIW, I also had that happen to me.  Your --exclude parameter option worked like a charm.</description>
		<content:encoded><![CDATA[<p>FWIW, I also had that happen to me.  Your &#8211;exclude parameter option worked like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://thelucid.com/2007/08/24/using-rcov-to-measure-the-test-coverage-of-rails-plugins/comment-page-1/#comment-2220</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 13 Nov 2008 17:26:58 +0000</pubDate>
		<guid isPermaLink="false">http://c533fc04-524b-4de6-bd09-fe3ed45a3a0f#comment-2220</guid>
		<description>Problem solved... Turns out I needed to exclude the gem directories. I had to modify your code a bit so without pasting up a very distorted version I have included my logic below, should anyone come to face this issue:

----------------------- Logic to set exclude variable

if PLATFORM =~ /darwin/
  exclude = &#039;--exclude &quot;gems/*&quot;&#039;
else
  exclude = &#039;--exclude &quot;rubygems/*&quot;&#039;
end

----------------------- Example implementation

require &#039;rcov/rcovtask&#039;
 
desc &#039;Measures test coverage using rcov&#039;
namespace :rcov do
  desc &#039;Output unit test coverage of plugin.&#039;
  Rcov::RcovTask.new(:unit) do &#124;rcov&#124;
    rcov.pattern    = &#039;test/unit/**/*_test.rb&#039;
    rcov.output_dir = &#039;rcov&#039;
    rcov.verbose    = true
    rcov.rcov_opts &lt;&lt; &#039;--exclude &quot;gems/*&quot;&#039;
  end
 
  desc &#039;Output functional test coverage of plugin.&#039;
  Rcov::RcovTask.new(:functional) do &#124;rcov&#124;
    rcov.pattern    = &#039;test/functional/**/*_test.rb&#039;
    rcov.output_dir = &#039;rcov&#039;
    rcov.verbose    = true
    rcov.rcov_opts &lt;&lt; &#039;--exclude &quot;gems/*&quot;&#039;
  end
end

---------------------------
Odd why this has happened to me and not others... Unless I just missed the step most people don&#039;t -- to exclude the gems folders. Thanks for your help in getting me started!</description>
		<content:encoded><![CDATA[<p>Problem solved&#8230; Turns out I needed to exclude the gem directories. I had to modify your code a bit so without pasting up a very distorted version I have included my logic below, should anyone come to face this issue:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Logic to set exclude variable</p>
<p>if PLATFORM =~ /darwin/<br />
  exclude = &#8216;&#8211;exclude &#8220;gems/*&#8221;&#8216;<br />
else<br />
  exclude = &#8216;&#8211;exclude &#8220;rubygems/*&#8221;&#8216;<br />
end</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Example implementation</p>
<p>require &#8216;rcov/rcovtask&#8217;</p>
<p>desc &#8216;Measures test coverage using rcov&#8217;<br />
namespace :rcov do<br />
  desc &#8216;Output unit test coverage of plugin.&#8217;<br />
  Rcov::RcovTask.new(:unit) do |rcov|<br />
    rcov.pattern    = &#8216;test/unit/**/*_test.rb&#8217;<br />
    rcov.output_dir = &#8216;rcov&#8217;<br />
    rcov.verbose    = true<br />
    rcov.rcov_opts &lt;&lt; &#8216;&#8211;exclude &#8220;gems/*&#8221;&#8216;<br />
  end</p>
<p>  desc &#8216;Output functional test coverage of plugin.&#8217;<br />
  Rcov::RcovTask.new(:functional) do |rcov|<br />
    rcov.pattern    = &#8216;test/functional/**/*_test.rb&#8217;<br />
    rcov.output_dir = &#8216;rcov&#8217;<br />
    rcov.verbose    = true<br />
    rcov.rcov_opts &lt;&lt; &#8216;&#8211;exclude &#8220;gems/*&#8221;&#8216;<br />
  end<br />
end</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Odd why this has happened to me and not others&#8230; Unless I just missed the step most people don&#8217;t &#8212; to exclude the gems folders. Thanks for your help in getting me started!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://thelucid.com/2007/08/24/using-rcov-to-measure-the-test-coverage-of-rails-plugins/comment-page-1/#comment-2209</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Tue, 11 Nov 2008 20:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://c533fc04-524b-4de6-bd09-fe3ed45a3a0f#comment-2209</guid>
		<description>I&#039;m not sure what&#039;s happening there, I have updated the post to reflect the code that I use now.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what&#8217;s happening there, I have updated the post to reflect the code that I use now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://thelucid.com/2007/08/24/using-rcov-to-measure-the-test-coverage-of-rails-plugins/comment-page-1/#comment-2208</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 11 Nov 2008 20:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://c533fc04-524b-4de6-bd09-fe3ed45a3a0f#comment-2208</guid>
		<description>Thanks for the write up. I gave this a shot but I am seeing rcov test all of my /Library-Ruby-Gems-1-8/ gems. Is there a feature to turn off the checking of those gems? I just want to run the rcoverage testing on my app/test/* files.

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the write up. I gave this a shot but I am seeing rcov test all of my /Library-Ruby-Gems-1-8/ gems. Is there a feature to turn off the checking of those gems? I just want to run the rcoverage testing on my app/test/* files.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

