Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
def tdd_ios( hint: RubyMotion ) @ #SydInMotion
Search
Jon Rowe
April 15, 2014
Technology
0
110
def tdd_ios( hint: RubyMotion ) @ #SydInMotion
Brief testing lightning talk from April 2014's #sydinmotion.
Jon Rowe
April 15, 2014
Tweet
Share
More Decks by Jon Rowe
See All by Jon Rowe
RSpec - Level Up
jonrowe
0
210
Learning From Other Languages - Immutability
jonrowe
0
120
Intro-spec-tion RubyConfAU 2016
jonrowe
0
150
RSpec + Rails Without rspec-rails @ RoRoSyd November 2015
jonrowe
1
220
RSpec 3 and why I `expect(you).to care`
jonrowe
3
540
Upgrading RSpec - RoRoSyd June 14
jonrowe
1
85
Tales Of Interest - RubyConfAU 2014
jonrowe
0
55
RSpec... Your doing it wrong... RoRoSYD Lightning Talk October 2013
jonrowe
0
130
expect(RSpec::3).to be_coming_soon @Dius_AU September 2013
jonrowe
0
150
Other Decks in Technology
See All in Technology
ChatGPT for IT Service Management (IT Pro)
dahatake
7
1.5k
継続的な改善 x ⾮連続的な進化
sansantech
PRO
3
130
Tellus の衛星データを見てみよう #mf_fukuoka
kongmingstrap
0
110
データベース02: データベースの概念
trycycle
0
140
複雑な構成要素を持つUIとの向き合い方 〜新・支出グラフでの実例〜 / B43 TECH TALK
nakamuuu
0
140
MLOpsの「壁」を乗り越える、LINEヤフーの Data Quality as Code
lycorptech_jp
PRO
4
300
LLM とプロンプトエンジニアリング/チューターをビルドする / LLM and Prompt Engineering and Building Tutors
ks91
PRO
0
250
Algyan イベント振り返り
linyixian
0
210
VS CodeでAWSを操作しよう
smt7174
7
1.6k
どうするコスト最適化のトレードオフ
tetsuyaooooo
1
490
反実仮想機械学習とは何か
usaito
PRO
8
3k
20240416_devopsdaystokyo
kzkmaeda
1
210
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
20
1.9k
BBQ
matthewcrist
80
8.8k
Web development in the modern age
philhawksworth
202
10k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
Music & Morning Musume
bryan
41
5.6k
Making the Leap to Tech Lead
cromwellryan
124
8.5k
The Brand Is Dead. Long Live the Brand.
mthomps
49
28k
Large-scale JavaScript Application Architecture
addyosmani
504
110k
Become a Pro
speakerdeck
PRO
11
4.5k
Debugging Ruby Performance
tmm1
70
11k
Optimising Largest Contentful Paint
csswizardry
8
2.3k
Transcript
def tdd_ios( hint: RubyMotion) @JONROWE
@JONROWE
@JONROWE So don’t?
ObjectiveC
ObjectiveC TDD IS HARD!
ObjectiveC TDD IS HARD! (or just not popular)
PhoneGap?
PhoneGap? JS
PhoneGap? JS TDD’able
PhoneGap? JS TDD’able Sucks...
RubyMotion?
RubyMotion? Ruby
RubyMotion? Ruby Compiles
RubyMotion? Ruby Compiles Access to all the APIs
RubyMotion? Ruby Compiles Access to all the APIs
RubyMotion? Ruby Compiles Access to all the APIs
Has testing built in
Bacon !
Bacon MacBacon
Bacon MacBacon Runs In Simulator
None
Unit Testing
Unit Testing Integration Testing
Unit Testing Integration Testing Acceptance Testing (limited)
Use Rubyisms
Use Rubyisms Stub web requests
Use Rubyisms Stub web requests Simulate device events
Felt Like Rails
Solution?
Pure Ruby Library
Pure Ruby Library RSpec / MiniTest
Pure Ruby Library RSpec / MiniTest Ruby 2.0.0
Caveats:
Caveats: Libs don’t always behave the same.
Caveats: Libs don’t always behave the same. (JSON)
Caveats:
Caveats: no require
Caveats: no require no metaprogramming
Caveats: no require no metaprogramming alloc / init vs initialize
end
Bonus Code
None
None
See Also: https://github.com/JonRowe/locomotion