前回はビューとコントローラのテストを書いてみました。今回は受け入れテストと呼ばれるEnd to End のテストを書いてみたいと思います。 motion-calabash 受け入れテストの機能は RubyMotion 標準では搭載されていません。ここでは motion-calabash という、Calabash の RubyMotion 向け gem を使用してみたいと思います。 Calabash は Ruby on Rails の開発者にはおなじみ Cucumber の iOS 及び Android 向け実装です。 インストール RubyGems になっていますので、いつも通り Gemfile を編集して bundle コマンドを打ちます。 Gemfile gem 'motion-calabash' # この一行を追加 ターミナルから以下を実行します。 $ bundle 続いて Cala
昨日は RubyMotion のもくもく会でした。 先日の RubyMotion Kaigi 2013 で 実践RubyMotion という題目で発表したのだけど、テストについてはprintデバッグ上等だ、このクソムシがとか言ってかなり適当に済ませてしまった。ので、もくもく会ではテスト周りに手をつけるぞと思い、そういえば Travis CI が RubyMotion に対応してたのも思い出し RubyMotion のテストを Travis CI で回すのを検証した。 が、手間取るかと思った Travis CI 周りはとっても簡単で、.travis.yml に language: objective-c と書くだけであっさり動いてしまった。 というわけで RubyMotion アプリの継続的インテグレーションは .travis.yml を一行書けば完了です。終わり・・・じゃあまったくブログ記
I’m testing parts of Shortcat (which as of v0.4.0 is in Objective-C) with RubyMotion, which is pretty nifty since I’m much more comfortable in Ruby than Objective-C and writing tests is way easier in Ruby. However, it’s far from the fully-featured RSpec like I’m used to. When working on a class, I like to only run specs for that particular file to keep the runtimes down, then run all the specs lat
We have been using OCMock to assist our unit testing in a RubyMotion application for a few months now. It was on our radar from the beginning because we’ve used it in past iOS development projects, and it has served us well. It’s a well-known library, and we know it can do the job, but it does leave some room for improvement. Specifically, it feels unnecessarily verbose against the the relatively
This is the official blog of RubyMotion, a toolchain for iOS development that lets do you do iPhone and iPad apps in Ruby. Follow us on Twitter or subscribe to our newsletter to stay tuned with everything that's happening in the community! Not a RubyMotion user yet? Purchase it today! RubyMotion now features a brand-new testing layer that lets you write functional specifications for the views and
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く