Más contenido relacionado
La actualidad más candente (15)
Similar a 俺のRails開発環境 (20)
俺のRails開発環境
- 1. 俺のRails開発環境
@joker1007
Tomohiro Hashidate
ジョジョエヴァンジェリスト
2012年5月16日水曜日
- 4. 概要
使ってるもの 無いと始まらないGem
rvm rspec
vim pry
zsh guard
screen tapp
git
開発に使ってるOS
jenkins Mac
Linux (Ubuntu, Gentoo)
2012年5月16日水曜日
- 5. テスト
• ユニットテスト
• RSpec
• インテグレーションテスト
• cucumber
• javascriptユニットテスト
• jasmine-headless-webkit
2012年5月16日水曜日
- 6. Railsへの入口
• rvmで適当にgemsetを作り、railsをインス
トール
• rails new appname -T -m <template
gist> --skip-bundle
• bundle install --path vendor/bundle
2012年5月16日水曜日
- 7. テストの準備
• bundle exec rails g rspec:install
• bundle exec guard init rspec (guard-
rspec)
• bundle exec guard init spork (guard-
spork)
• guard 'rspec', :version => 2, :cli => "--
format d --color --drb", :all_on_start =>
false, :all_after_pass => false
2012年5月16日水曜日
- 8. テストの準備(大規模の時)
• database: appname_test<%= ENV
['TEST_ENV_NUMBER'] %>
• bundle exec rake parallel:create
• .rspec_parallel
• --format progress
• --format
ParallelTests::RSpec::RuntimeLogger --
out tmp/parallel_runtime_rspec.log
2012年5月16日水曜日
- 9. 書き方
• bundle exec guard start
• sporkが立ち上がって監視状態
• specファイルを書いて、動作確認。
• 後はせっせとTDD
2012年5月16日水曜日
- 10. 便利な小技シリーズ
• zsh編
• alias g= git
• aias be= bundle exec
• vcs_info
2012年5月16日水曜日
- 12. 便利な小技シリーズ
• git編
• alias
• lgraph = log --oneline --
graph --decorate --all -n 20
• color
• ui = auto
2012年5月16日水曜日
- 14. 便利な小技シリーズ
• vim編
• vim-altr
• fugitive
• quickrun
• erromarker
• unite-grep + qfreplace
2012年5月16日水曜日