-
Notifications
You must be signed in to change notification settings - Fork 102
Developing
davetron5000 edited this page May 1, 2011
·
7 revisions
GLI uses bundler to manage development-time dependencies. I also suggest you use rvm when developing, using at least Ruby 1.8.7 and Ruby 1.9.2.
Unit tests all pass on the supported rubies
# install rvm
> for ruby in 1.9.2 1.8.7 jruby ree rbx
do
rvm install $ruby
rvm use $uby
rvm gemset create gli-dev
rvm gemset use gli-dev
gem install bundler
bundle install
done
bin/test_all_rubies.sh
# If all green, you are good to go
rvm use 1.8.7@gli-dev
rake rcov
GLI currently has 100% test coverage (of everything except for the scaffold task), and I'd like to keep it that way. If you submit patches, please have a test, that makes it easier for me to know if anything's broken.
GLI uses aruba and cucumber for system testing; these tests test the gli
executable and the scaffold app generated by gli init
. Currently, these features fail on JRuby (due to different handling of ruby paths that I haven't sorted out) and also do not work on rbx (this issue filed to get to the bottom of it).
> for ruby in 1.9.2 1.8.7 ree
do
rake features
done