- create folders "files","config","public" and "public/assets" under the wikirate root directory.
- rake wagn:seed
- import the database
- bundle exec wagn s
Paths:
mod/*/spec # rspec tests
mod/*/features # cucumber tests
mod/*/features/step_definitions # cucumber step definitions
Run rake wikirate:test:seed
to prepare test database.
Start rspec with wagn rspec
and cucumber with wagn cucumber
.
Alternatively, you can use the shorter commands wagn rs
and wagn cc
To update the test data from the dev site run
cap staging backup:pull_db
env RAILS_ENV=test rake wikirate:test:update_seed_data
This updates the mysql dump in test/wikiratetest.db that is also used for continuous integration testing. So don't forget to include it in your git commits.