2008-06-02 08:21:03 +00:00
|
|
|
1. Wiki
|
|
|
|
|
|
|
|
|
|
There are some pointers for setting up your Tracks copy for testing at http://dev.rousette.org.uk/wiki/Tracks/Testing
|
|
|
|
|
|
|
|
|
|
2. SQLITE3 FOR TESTING
|
2008-01-29 17:42:58 +00:00
|
|
|
|
|
|
|
|
By default, tests are configured to run using sqlite3 in memory mode to increase speed. You will need the sqlite3-ruby gem for this.
|
|
|
|
|
|
|
|
|
|
To avoid showing the migrations as tests are run, add the following to your database.yml below 'database: ":memory:"':
|
|
|
|
|
|
|
|
|
|
verbosity: quiet
|
|
|
|
|
|
|
|
|
|
If you want to run tests using another database, that's fine, too. Just change your database.yml accordingly.
|
|
|
|
|
|
2008-06-02 08:21:03 +00:00
|
|
|
3. SELENIUM TESTS
|
2008-01-29 17:42:58 +00:00
|
|
|
|
|
|
|
|
To run selenium tests, start Tracks in test mode using
|
|
|
|
|
|
|
|
|
|
script/server -e test
|
|
|
|
|
|
|
|
|
|
Then open a browser to
|
|
|
|
|
|
|
|
|
|
http://localhost:3000/selenium/
|
|
|
|
|
|
|
|
|
|
and interact with the test runner.
|
|
|
|
|
|
|
|
|
|
For more information about Selenium on Rails, see vendor/plugins/selenium-on-rails/README
|