[DRE-commits] r5426 - trunk/redmine/debian

Jérémy Lal kapouer-guest at alioth.debian.org
Thu May 27 00:25:39 UTC 2010


Author: kapouer-guest
Date: 2010-05-27 00:25:37 +0000 (Thu, 27 May 2010)
New Revision: 5426

Modified:
   trunk/redmine/debian/README.source
Log:
Give details about how to run tests.

Modified: trunk/redmine/debian/README.source
===================================================================
--- trunk/redmine/debian/README.source	2010-05-26 00:06:54 UTC (rev 5425)
+++ trunk/redmine/debian/README.source	2010-05-27 00:25:37 UTC (rev 5426)
@@ -1,10 +1,12 @@
 * RAKE TEST
 1. dpkg-reconfigure redmine, add a "test" sqlite3 instance
 2. edit /etc/redmine/test/database.yml, copy 'production' section and rename it 'test'
-3. in /usr/share/redmine, run :
-	sudo -u www-data X_DEBIAN_SITEID=test RAILS_ENV=test rake test
-Install missing gems (e.g. thoughtbot-shoulda, edavis10-object_daddy) using gem install xxx
-Notice : there are debian packages available for libshoulda-ruby and libmocha-ruby.
-To run tests with repositories, they must be uncompressed and put in the right place.
+   edit /usr/share/redmine/config/environments/test.rb and comment "mocha"
+3. Install debian packages available for libshoulda-ruby and libmocha-ruby
+4.
+cd /usr/share/redmine
+mkdir -p tmp/test
+X_DEBIAN_SITEID=test RAILS_ENV=test rake test:scm:setup:all
+X_DEBIAN_SITEID=test RAILS_ENV=test rake test
 
-4. Unfortunately, a bug in rails 2.3.5 prevents from running integration tests.
+5. READ doc/RUNNING_TESTS in redmine source package to get more informations.




More information about the Pkg-ruby-extras-commits mailing list