<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,4 +6,6 @@ pkg
 tmp
 *.pid
 test/fake_application/public/something/logo.gif
-test/fake_application/db/fake_application_test.db
\ No newline at end of file
+test/fake_application/db/fake_application_test.db
+coverage/**/*.*
+coverage/*.*
\ No newline at end of file</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,4 @@
+* Added test:stats and test:coverage Rake tasks.
 * Removed support for ActiveRecord
 * Fixed a bug where yields in ERB weren't giving the desired results.
 * DataMapper database.yml file can now be nested, and is generated as such.
@@ -7,6 +8,7 @@
 * gem: mack_ruby_core_extensions 0.1.22
 * gem: genosaurus 1.1.3
 * gem: datamapper 0.3.2
+* gem: rcov 0.8.1.2.0
 
 ===0.4.7
 * Added Mack::Request::UploadedFile class to make dealing with file uploads easy.</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -8,6 +8,26 @@ end
 
 namespace :test do
   
+  desc &quot;Report code statistics (KLOCs, etc) from the application. Requires the rcov gem.&quot;
+  task :stats do |t|
+    x = `rcov test/**/*_test.rb -T --no-html`
+    @print = false
+    x.each do |line|
+      puts line if @print
+      unless @print
+        if line.match(/\d+ tests, \d+ assertions, \d+ failures, \d+ errors/)
+          @print = true
+        end
+      end
+    end
+  end
+  
+  desc &quot;Generates test coverage from the application. Requires the rcov gem.&quot;
+  task :coverage do |t|
+    `rcov test/**/*_test.rb`
+    `open coverage/index.html`
+  end
+  
   task :empty do |t|
     ENV[&quot;TEST:EMPTY&quot;] = &quot;true&quot;
     puts ENV[&quot;TEST:EMPTY&quot;]
@@ -20,3 +40,5 @@ namespace :test do
 end
 
 alias_task :test, :default
+alias_task :stats, &quot;test:stats&quot;
+alias_task :coverage, &quot;test:coverage&quot;</diff>
      <filename>lib/tasks/test_tasks.rake</filename>
    </modified>
    <modified>
      <diff>@@ -59,6 +59,7 @@ namespace :gem do
         s.add_dependency(&quot;erubis&quot;, &quot;2.5.0&quot;)
         s.add_dependency(&quot;genosaurus&quot;, &quot;1.1.3&quot;)
         s.add_dependency(&quot;datamapper&quot;, &quot;0.3.2&quot;)
+        s.add_dependency(&quot;rcov&quot;, &quot;0.8.1.2.0&quot;)
         
       
         s.rubyforge_project = gh.project</diff>
      <filename>tasks/mack_gem_tasks.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>668ce481e0281f37e3cd9d2683931fedf1e53875</id>
    </parent>
  </parents>
  <author>
    <name>Mark Bates</name>
    <email>mark@mackframework.com</email>
  </author>
  <url>http://github.com/markbates/mack/commit/9c5289d64823871ed7a33a6a8baf024d0fe930f8</url>
  <id>9c5289d64823871ed7a33a6a8baf024d0fe930f8</id>
  <committed-date>2008-05-01T17:42:26-07:00</committed-date>
  <authored-date>2008-05-01T17:42:26-07:00</authored-date>
  <message> Added test:stats and test:coverage Rake tasks.</message>
  <tree>e3b851119f04d71a641c6f0a4eb3bb995b1a44b6</tree>
  <committer>
    <name>Mark Bates</name>
    <email>mark@mackframework.com</email>
  </committer>
</commit>
