Navigation

 ·   Wiki Home
 ·   Wiki Help
 ·   Categories
 ·   Title List
 ·   Random Page
 ·   File Upload
 ·   Uploaded Files
 ·   Recent Changes
 ·   RSS
 ·   Atom

Active Members:

 ·  Panga

Search:

 

Create or Find Page:

 

View Testing

Testing Tracks is fairly simple. All you need to do is install a couple of bundles and run the suite! All tests are stored in $RAILS_ROOT/test.

Setup

The tests make use of flexmock and zentest which need to be installed first

Install required gems with

gem install -y flexmock ZenTest hpricot

Running the Rails test suite

Assuming you’ve already checked out the source code using git, change to the root directory of the project ($RAILS_ROOT) and run

rake test

If it completes successfully 0 failures, you’re good to go!

Running the Selenium test suite

Tracks also has an extensive suite of frontend tests that run in a browser.
To run the suite simply run Tracks in the test environment:

script/server -e test

in a separate command window, then run

rake test:acceptance

and Firefox will pop up and run the suite. If this does not work, you can run the suite manually by launching the server in test mode with the command above, and navigating to

http://localhost:3000/selenium/ in your browser of choice.