Started moving selenium on rails tests over to RSpec stories. See the updated README_DEVELOPERS for info on running the new tests.

This commit is contained in:
Luke Melia 2008-06-19 00:14:04 -04:00
parent 85dc6f4898
commit d47e863dfc
12 changed files with 257 additions and 74 deletions

View file

@ -12,8 +12,10 @@ To avoid showing the migrations as tests are run, add the following to your data
If you want to run tests using another database, that's fine, too. Just change your database.yml accordingly.
3. SELENIUM TESTS
3. SELENIUM TESTS (Selenium on Rails)
This testing style is deprecated and are being moved over to Selenium via RSpec stories by lukemelia (See #4 below for the new style).
To run selenium tests, start Tracks in test mode using
script/server -e test
@ -24,4 +26,25 @@ Then open a browser to
and interact with the test runner.
For more information about Selenium on Rails, see vendor/plugins/selenium-on-rails/README
For more information about Selenium on Rails, see vendor/plugins/selenium-on-rails/README
4. RSPEC STORY RUNNER TESTS
To run the stories, which are browser tests using selenium, start Tracks in test mode using
rake db:test:prepare
script/server -e test
Then start Selenium by running
selenium
which is a script installed with the Selenium gem (sudo gem install Selenium)
Once the site and selenium server are running, then run all stories with
script/story
or a specific set with
script/story stories/login/*.story