<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,8 +14,23 @@ EOS
   exit(0)
 end
 
-desc &quot;Run the specs under spec/models&quot;
-Spec::Rake::SpecTask.new do |t|
+desc &quot;Run the specs under spec&quot;
+Spec::Rake::SpecTask.new('spec') do |t|
   t.spec_opts = ['--options', &quot;spec/spec.opts&quot;]
   t.spec_files = FileList['spec/**/*_spec.rb']
 end
+
+desc &quot;Run the specs under spec with code coverage&quot;
+Spec::Rake::SpecTask.new('rcov') do |t|
+  t.spec_opts = ['--options', &quot;spec/spec.opts&quot;]
+  t.spec_files = FileList['spec/**/*_spec.rb']
+  t.rcov = true
+  t.rcov_opts = ['--exclude', 'spec']
+end
+
+desc &quot;Generate spec HTML report&quot;
+Spec::Rake::SpecTask.new('spec-report') do |t|
+  t.spec_files = FileList['spec/**/*_spec.rb']
+  t.spec_opts = [&quot;--format&quot;, &quot;html:doc/rspec-results.html&quot;, &quot;--diff&quot;]
+  t.fail_on_error = false
+end</diff>
      <filename>tasks/rspec.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8534cfdedcff33b0335b066eb0a0a60b5116e18b</id>
    </parent>
  </parents>
  <author>
    <name>Marcus Crafter</name>
    <email>crafterm@redartisan.com</email>
  </author>
  <url>http://github.com/square-circle-triangle/airbrush/commit/3c0ef5c11d6ccaa74cbfb5a2445d008bd2f1aa56</url>
  <id>3c0ef5c11d6ccaa74cbfb5a2445d008bd2f1aa56</id>
  <committed-date>2008-02-11T16:44:31-08:00</committed-date>
  <authored-date>2008-02-11T16:44:31-08:00</authored-date>
  <message>Add rspec tasks for generating html reports and code coverage


git-svn-id: svn://svn.sct.com.au/image_server/trunk@54 daa9635f-4444-0410-9b3d-b8c75a019348</message>
  <tree>275b98436ddc46a90de4b7edfa5e22058171b445</tree>
  <committer>
    <name>Marcus Crafter</name>
    <email>crafterm@redartisan.com</email>
  </committer>
</commit>
