<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,3 @@
 test/rails_root/log/*.log
 doc
+coverage</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -3,10 +3,10 @@ require 'rake/testtask'
 require 'rake/rdoctask'
 
 # Test::Unit::UI::VERBOSE
-
+test_files_pattern = 'test/{unit,functional,other}/**/*_test.rb'
 Rake::TestTask.new do |t|
   t.libs &lt;&lt; 'lib'
-  t.pattern = 'test/{unit,functional,other}/**/*_test.rb'
+  t.pattern = test_files_pattern
   t.verbose = false
 end
 
@@ -18,6 +18,13 @@ Rake::RDocTask.new { |rdoc|
   rdoc.rdoc_files.include('README.rdoc', 'CONTRIBUTION_GUIDELINES.rdoc', 'lib/**/*.rb')
 }
 
+desc &quot;Run code-coverage analysis using rcov&quot;
+task :coverage do
+  rm_rf &quot;coverage&quot;
+  files = Dir[test_files_pattern]
+  system &quot;rcov --rails --sort coverage -Ilib #{files.join(' ')}&quot;
+end
+
 desc 'Update documentation on website'
 task :sync_docs =&gt; 'rdoc' do
   `rsync -ave ssh doc/ dev@dev.thoughtbot.com:/home/dev/www/dev.thoughtbot.com/shoulda`</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>66be6bc125f7869ee41f0d2d49df8b95ba486cb6</id>
    </parent>
  </parents>
  <author>
    <name>Ryan McGeary</name>
    <email>ryanongit@mcgeary.org</email>
  </author>
  <url>http://github.com/showaltb/shoulda/commit/e1a54268b0fd318b952889fef319e89164b9a4e7</url>
  <id>e1a54268b0fd318b952889fef319e89164b9a4e7</id>
  <committed-date>2008-07-11T18:58:23-07:00</committed-date>
  <authored-date>2008-07-01T07:06:29-07:00</authored-date>
  <message>Added 'rake coverage' for an rcov report</message>
  <tree>1df94db26c943b362f49360320c84223a48cd67f</tree>
  <committer>
    <name>Ryan McGeary</name>
    <email>ryanongit@mcgeary.org</email>
  </committer>
</commit>
