Skip to content
Browse files

Add instructions for setting up the test suite

  • Loading branch information...
1 parent 84bd8d8 commit 4c3a4756b75fc87d713481c1cbb1d8e69b7c697e @mike-burns mike-burns committed Sep 25, 2012
Showing with 40 additions and 0 deletions.
  1. +40 −0 TESTING.md
View
40 TESTING.md
@@ -0,0 +1,40 @@
+Running the test suite
+======================
+
+
+Run the tests:
+
+ % rake
+
+In order to do this you must have gems bundled, Appraisal set up, and
+three databases configured.
+
+bundler
+-------
+
+ % bundle --binstubs
+
+Appraisal
+---------
+
+ % rake appraisal:install
+
+MySQL
+-----
+
+ % echo create database pacecar_test | mysql
+ % cd spec/dummy
+ spec/dummy% RAILS_ENV=test BUNDLE_GEMFILE=../../gemfiles/rails-3.1.6-database-mysql.gemfile bundle exec rake db:migrate
+
+Postgres
+--------
+
+ % createdb pacecar_test
+ % cd spec/dummy
+ spec/dummy% RAILS_ENV=test BUNDLE_GEMFILE=../../gemfiles/rails-3.1.6-database-pg.gemfile bundle exec rake db:migrate
+
+sqlite
+------
+
+ % cd spec/dummy
+ spec/dummy% RAILS_ENV=test % BUNDLE_GEMFILE=../../gemfiles/rails-3.1.6-database-sqlite3.gemfile bundle exec rake db:migrate

0 comments on commit 4c3a475

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