Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test HOWTO.

  • Loading branch information...
commit 2cde5372d5d4b9aa85f3a95cb6699d359f3fd7b8 1 parent fdcd0e6
Evan Weaver authored
Showing with 20 additions and 12 deletions.
  1. +20 −0 TEST_HOWTO
  2. +0 −12 test/HOW_TO
View
20 TEST_HOWTO
@@ -0,0 +1,20 @@
+Steps to run the tests.
+
+ $ mkdir test/integration/app/log
+ $ RAILS_ENV=development; export RAILS_ENV
+
+If you don't run mysql as root, edit the user in test/integration/app/config/database.yml,
+and grant him permissions to create new tables (/opt/local/lib/mysql5/bin/mysql -u root -p).
+
+ $ sudo gem install multi_rails echoe
+ $ rake
+
+To run an individual suite, first run:
+
+ $ ruby test/setup.rb
+
+Then:
+
+ $ ruby test/unit/finder_test.rb
+
+etc.
View
12 test/HOW_TO
@@ -1,12 +0,0 @@
-# These are the steps I took to get to run the basic unit tests.
-# is there any 'official' way to do this?
-
-mkdir test/integration/app/log
-RAILS_ENV=test ; export RAILS_ENV # Hmmm... or not -- the environments/test.rb isn't setup correctly - it wants to run as development
--- edit test/integration/app/config/database.yml # because I don't run root/<blank>
--- grant myself permissions to great new tables (/opt/local/lib/mysql5/bin/mysql -u root -p) # again cause I don't run as root
-sudo gem install multi_rails
-
-ruby test/setup.rb
-ruby test/unit/finder_test.rb # etc
-ruby test/integration/server_test.rb

0 comments on commit 2cde537

Please sign in to comment.
Something went wrong with that request. Please try again.