<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,46 +1,16 @@
-Creating test repositories
-===================
-
-mkdir tmp/test
-
-Subversion
-----------
-svnadmin create tmp/test/subversion_repository
-gunzip &lt; test/fixtures/repositories/subversion_repository.dump.gz | svnadmin load tmp/test/subversion_repository
-
-CVS
----
-gunzip &lt; test/fixtures/repositories/cvs_repository.tar.gz | tar -xv -C tmp/test
-
-Bazaar
-------
-gunzip &lt; test/fixtures/repositories/bazaar_repository.tar.gz | tar -xv -C tmp/test
-
-Mercurial
----------
-gunzip &lt; test/fixtures/repositories/mercurial_repository.tar.gz | tar -xv -C tmp/test
-
-Git
----
-gunzip &lt; test/fixtures/repositories/git_repository.tar.gz | tar -xv -C tmp/test
-
-Darcs (2.0+ required)
----------------------
-gunzip &lt; test/fixtures/repositories/darcs_repository.tar.gz | tar -xv -C tmp/test
-
-FileSystem
-----------
-gunzip &lt; test/fixtures/repositories/filesystem_repository.tar.gz | tar -xv -C tmp/test
-
-
 Running Tests
 =============
 
-Run 
+Run `rake --tasks test` to see available tests.
+`rake test` will run the entire testsuite.
 
-  rake --tasks | grep test
 
-to see available tests.
+Creating test repositories
+===================
+
+Redmine supports a wide array of different version control systems.
+To test the support, a test repository needs to be created for each of those.
 
-RAILS_ENV=test rake test will run tests.
+Run `rake --tasks test:scm:setup` for a list of available test-repositories or
+run `rake test:scm:setup:all` to set up all of them
 </diff>
      <filename>doc/RUNNING_TESTS</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,35 @@
 ### From http://svn.geekdaily.org/public/rails/plugins/generally_useful/tasks/coverage_via_rcov.rake
 
+namespace :test do
+  namespace :scm do
+    namespace :setup do
+      desc &quot;Creates directory for test repositories&quot;
+      task :create_dir do
+        FileUtils.mkdir_p Rails.root + '/tmp/test'
+      end
+      
+      supported_scms = [:subversion, :cvs, :bazaar, :mercurial, :git, :darcs, :filesystem]
+      
+      desc &quot;Creates a test subversion repository&quot;
+      task :subversion =&gt; :create_dir do
+        repo_path = &quot;tmp/test/subversion_repository&quot;
+        system &quot;svnadmin create #{repo_path}&quot;
+        system &quot;gunzip &lt; test/fixtures/repositories/subversion_repository.dump.gz | svnadmin load #{repo_path}&quot;
+      end
+      
+      (supported_scms - [:subversion]).each do |scm|
+        desc &quot;Creates a test #{scm} repository&quot;
+        task scm =&gt; :create_dir do
+          system &quot;gunzip &lt; test/fixtures/repositories/#{scm}_repository.tar.gz | tar -xv -C tmp/test&quot;
+        end
+      end
+      
+      desc &quot;Creates all test repositories&quot;
+      task :all =&gt; supported_scms
+    end
+  end
+end
+
 ### Inspired by http://blog.labratz.net/articles/2006/12/2/a-rake-task-for-rcov
 begin
   require 'rcov/rcovtask'</diff>
      <filename>lib/tasks/testing.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>38b2c5a31784469d62a58622531f2ca8d791e023</id>
    </parent>
  </parents>
  <author>
    <name>Eric Davis</name>
    <email>edavis@littlestreamsoftware.com</email>
  </author>
  <url>http://github.com/artemv/redmine_tt/commit/17d455c72f4d1e4bfab90e8654fe9db120734578</url>
  <id>17d455c72f4d1e4bfab90e8654fe9db120734578</id>
  <committed-date>2009-01-11T20:44:01-08:00</committed-date>
  <authored-date>2009-01-11T20:44:01-08:00</authored-date>
  <message>Codified instructions from RUNNING_TESTS as rake tasks for convenience

Rake tasks are in testing.rake and can be run by `rake test:scm:setup:&lt;scm&gt;`
Updated RUNNING_TESTS

Contributed by Gerrit Kaiser


git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2260 e93f8b46-1217-0410-a6f0-8f06a7374b81</message>
  <tree>5c49f838e559bc75c801244cb21088e8d9fc8247</tree>
  <committer>
    <name>Eric Davis</name>
    <email>edavis@littlestreamsoftware.com</email>
  </committer>
</commit>
