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
75
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
160
Learning From Other Languages - Immutability
jonrowe
0
87
Intro-spec-tion RubyConfAU 2016
jonrowe
0
140
RSpec + Rails Without rspec-rails @ RoRoSyd November 2015
jonrowe
1
200
RSpec 3 and why I `expect(you).to care`
jonrowe
3
420
Upgrading RSpec - RoRoSyd June 14
jonrowe
1
65
Tales Of Interest - RubyConfAU 2014
jonrowe
0
49
RSpec... Your doing it wrong... RoRoSYD Lightning Talk October 2013
jonrowe
0
110
expect(RSpec::3).to be_coming_soon @Dius_AU September 2013
jonrowe
0
110
Other Decks in Technology
See All in Technology
Nutanix_Meetup_20220511
keigotomomatsu
0
130
目と耳を持った自然言語処理 - スタートアップにおける価値創出のために
yag_ays
PRO
0
490
エンジニアインターンの採用〜実際の開発への関与について for EM meetup#10
dmiyamoto
1
250
組織でPower Virtual Agentsを導入するために知っておきたいこと
miyakemito
0
1.3k
AWS SAMを使ったIaC and CI/CD
bulbulpaul
4
1.4k
様々な現場のPower Platform ~小さなエンジニアの奮闘記~
hyodol2513
0
1.6k
Building smarter apps with machine learning, from magic to reality
picardparis
4
3.1k
読者のことを考えて書いてみよう / Write with your reader in mind
line_developers
PRO
3
220
AWS CLI入門_20220513
suzakiyoshito
0
2.9k
Deeplearning from almost scratch
hn410
0
570
SRE_チーム立ち上げから1年_気づいたら_SRE_っぽくない仕事まで貢献しちゃってる説
bitkey
PRO
0
1.2k
街じゅうを"駅前化"する電動マイクロモビリティのシェアサービス「LUUP」のIoTとSRE
0gm
1
210
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
47
5.5k
Making the Leap to Tech Lead
cromwellryan
113
6.9k
How GitHub (no longer) Works
holman
296
140k
Writing Fast Ruby
sferik
612
57k
KATA
mclloyd
7
8.5k
How STYLIGHT went responsive
nonsquared
85
3.9k
BBQ
matthewcrist
74
7.9k
Designing for Performance
lara
596
63k
Robots, Beer and Maslow
schacon
152
7.1k
Ruby is Unlike a Banana
tanoku
91
9.2k
Design by the Numbers
sachag
271
17k
How To Stay Up To Date on Web Technology
chriscoyier
780
250k
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