tracks/doc/README_DEVELOPERS

66 lines
1.7 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 and interact with users
2010-08-19 16:34:42 +02:00
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 for Tracks are maintained using bundler. Before starting your
tracks instance, you'll need to run 'bundle install' to fetch all the
dependencies
2010-08-19 16:34:42 +02:00
3. Wiki
2008-06-19 10:13:59 +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.
2008-06-19 10:13:59 +02:00
To avoid showing the migrations as tests are run, add the following to your
database.yml below 'database: ":memory:"':
2008-06-19 10:13:59 +02:00
verbosity: quiet
If you want to run tests using another database, that's fine, too. Just change
your database.yml accordingly.
2008-06-19 10:13:59 +02:00
5. Test::Unit tests
2008-06-19 10:13:59 +02:00
To run the Test::Unit tests run
2008-06-19 10:13:59 +02:00
rake test
2008-06-19 10:13:59 +02:00
Running the above command will run through the unit, functional, and
integration tests for Tracks. Use 'rake -T' to see a list of all rake tasks to
determine how to run each section of tests separately.
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
In order to run the selenium tests, you'll need to have Firefox 3.x installed.
Newer versions won't work.
See the wiki for more information on testing: https://github.com/TracksApp/tracks/wiki/Testing