Skip to content
This repository
Browse code

Add instructions for setting up the test suite

  • Loading branch information...
commit 4c3a4756b75fc87d713481c1cbb1d8e69b7c697e 1 parent 84bd8d8
Mike Burns mike-burns authored

Showing 1 changed file with 40 additions and 0 deletions. Show diff stats Hide diff stats

  1. +40 0 TESTING.md
40 TESTING.md
Source Rendered
... ... @@ -0,0 +1,40 @@
  1 +Running the test suite
  2 +======================
  3 +
  4 +
  5 +Run the tests:
  6 +
  7 + % rake
  8 +
  9 +In order to do this you must have gems bundled, Appraisal set up, and
  10 +three databases configured.
  11 +
  12 +bundler
  13 +-------
  14 +
  15 + % bundle --binstubs
  16 +
  17 +Appraisal
  18 +---------
  19 +
  20 + % rake appraisal:install
  21 +
  22 +MySQL
  23 +-----
  24 +
  25 + % echo create database pacecar_test | mysql
  26 + % cd spec/dummy
  27 + spec/dummy% RAILS_ENV=test BUNDLE_GEMFILE=../../gemfiles/rails-3.1.6-database-mysql.gemfile bundle exec rake db:migrate
  28 +
  29 +Postgres
  30 +--------
  31 +
  32 + % createdb pacecar_test
  33 + % cd spec/dummy
  34 + spec/dummy% RAILS_ENV=test BUNDLE_GEMFILE=../../gemfiles/rails-3.1.6-database-pg.gemfile bundle exec rake db:migrate
  35 +
  36 +sqlite
  37 +------
  38 +
  39 + % cd spec/dummy
  40 + 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.