Skip to content

Complete Testing Installation

lukebaker edited this page Feb 22, 2013 · 1 revision

If you haven’t completed the Installing instructions do, complete those first.

  • Setup test database: RAILS_ENV=test ./bin/rake db:create; ./bin/rake db:test:load; ./bin/rake db:test:prepare
  • You’ll need a pairwise server running on port 4000. In pairwise directory, bundle exec ./script/server -p 4000
  • The test pairwise server, should have the authorized user that the tests use (see above for the command to create that). Check PAIRWISE_USERNAME and PAIRWISE_PASSWORD in config/config.yml to see which user / pass that the tests user. In pairwise directory, ./bin/rake util:useradd[[email protected],wheatthins]
  • Running tests all: ./bin/cucumber --no-profile
  • Running a specific feature: ./bin/cucumber --no-profile --require features --require lib features/voting/voting.feature
Clone this wiki locally