2010-08-19 16:34:42 +02:00
|
|
|
1. Resources
|
|
|
|
|
|
|
|
|
|
Tracks is using
|
|
|
|
|
* github to host the git repository.
|
|
|
|
|
* Assembla to manage bugs and enhancement request.
|
|
|
|
|
* the mailing list to discuss features and development
|
|
|
|
|
* the forum to discuss with users
|
|
|
|
|
|
|
|
|
|
See README for links to the respective sites
|
|
|
|
|
|
|
|
|
|
2. Dependencies
|
|
|
|
|
|
|
|
|
|
The dependencies are maintained by Tracks. For development we try not to vendor them
|
|
|
|
|
|
|
|
|
|
Install them using
|
|
|
|
|
|
|
|
|
|
rake gems:install RAILS_ENV=development
|
|
|
|
|
rake gems:install RAILS_ENV=test
|
|
|
|
|
rake gems:install RAILS_ENV=selenium
|
|
|
|
|
|
|
|
|
|
3. Wiki
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2009-02-05 21:00:38 +01:00
|
|
|
There are some pointers for setting up your Tracks copy for testing at http://www.getontracks.org/wiki/Testing/
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2010-08-19 16:34:42 +02:00
|
|
|
4. SQLITE3 FOR TESTING
|
2008-06-19 10:13:59 +02: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.
|
|
|
|
|
|
2010-08-19 16:34:42 +02:00
|
|
|
5. SELENIUM TESTS (Selenium on Rails)
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2011-04-30 22:58:08 +02:00
|
|
|
This testing style is deprecated and tests are being moved over to Selenium via Cucumber.
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2011-02-26 14:51:35 +01:00
|
|
|
See the wiki for more information to run the tests that are not yet migrated: http://www.getontracks.org/wiki/Testing
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2010-08-19 16:34:42 +02:00
|
|
|
6. RSPEC tests
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2010-08-19 16:34:42 +02:00
|
|
|
To run the RSpec tests run
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2010-08-19 16:34:42 +02:00
|
|
|
rake spec
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2010-08-19 16:34:42 +02:00
|
|
|
7. Cucumber tests
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2010-08-19 16:34:42 +02:00
|
|
|
To run the cucumber test run
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2010-08-19 16:34:42 +02:00
|
|
|
rake cucumber
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2010-08-19 16:34:42 +02:00
|
|
|
and for those using javascript/ajax use
|
2008-06-19 10:13:59 +02:00
|
|
|
|
2011-04-30 22:58:08 +02:00
|
|
|
rake cucumber:selenium
|
|
|
|
|
|
|
|
|
|
See the wiki for more information on testing: http://www.getontracks.org/wiki/Testing
|