Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
def tdd_ios( hint: RubyMotion ) @ #SydInMotion
Jon Rowe
April 15, 2014
Technology
0
62
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
jonrowe
0
140
jonrowe
0
72
jonrowe
0
120
jonrowe
1
190
jonrowe
3
320
jonrowe
1
58
jonrowe
0
40
jonrowe
0
110
jonrowe
0
91
Other Decks in Technology
See All in Technology
miyakemito
1
620
chandi
0
140
dena_tech
15
3.4k
ryomasumura
0
120
koukyo1994
5
1.6k
hayatan
0
200
hiroyaiizuka
0
140
leaner_tech
0
1.2k
1027kg
0
210
minma
0
210
akitok_
2
770
free_world21
0
110
Featured
See All Featured
malarkey
119
16k
scottboms
251
11k
jponch
103
5.1k
samanthasiow
56
6.4k
brianwarren
82
4.7k
rmw
11
810
keithpitt
401
20k
matthewcrist
73
7.5k
lara
172
9.6k
edds
56
9.4k
wjessup
339
16k
cassininazir
347
20k
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