tracks/doc/README_DEVELOPERS

59 lines
1.6 KiB
Text
Raw Normal View History

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
2011-08-17 09:55:36 +02:00
Also see the Development pages on the wiki for details on installing, upgrading, etc.
2010-08-19 16:34:42 +02:00
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
2011-08-02 11:01:50 +02:00
There are some pointers for setting up your Tracks copy for testing at https://github.com/TracksApp/tracks/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-08-02 11:01:50 +02:00
See the wiki for more information to run the tests that are not yet migrated: https://github.com/TracksApp/tracks/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
2011-08-02 11:01:50 +02:00
See the wiki for more information on testing: https://github.com/TracksApp/tracks/wiki/Testing