Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
def tdd_ios( hint: RubyMotion ) @ #SydInMotion
Search
Jon Rowe
April 15, 2014
Technology
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
def tdd_ios( hint: RubyMotion ) @ #SydInMotion
Brief testing lightning talk from April 2014's #sydinmotion.
Jon Rowe
April 15, 2014
Transcript
44 slides
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
More Decks by Jon Rowe
See All by Jon Rowe
RSpec - Level Up
jonrowe
0
350
Learning From Other Languages - Immutability
jonrowe
0
210
Intro-spec-tion RubyConfAU 2016
jonrowe
0
200
RSpec + Rails Without rspec-rails @ RoRoSyd November 2015
jonrowe
1
290
RSpec 3 and why I `expect(you).to care`
jonrowe
3
660
Upgrading RSpec - RoRoSyd June 14
jonrowe
1
130
Tales Of Interest - RubyConfAU 2014
jonrowe
0
110
RSpec... Your doing it wrong... RoRoSYD Lightning Talk October 2013
jonrowe
0
180
expect(RSpec::3).to be_coming_soon @Dius_AU September 2013
jonrowe
0
230
Other Decks in Technology
See All in Technology
[関西Kaggler会 20261113] 続・コミュニティコンペのススメ
nejumi
0
200
HTTP通信に使おうとすると実はめんどくさいfile_get_contents
maguroalternative
0
260
Kiro Enterprise Management: 管理者が 1 か所で決め、全員の Kiro に届ける
inariku
PRO
0
110
Kubernetes, Agones, WebRTC, GPU で作る クラウドゲーミング基盤を本番運用に乗せるまで
vivion
0
280
メディアアートを〈拡張〉する——器官学と個体化論を手がかりに
_kotobuki_
0
160
New Relicのアラート対応をClaude Codeで自動修正するワークフローを作った話
manabuseki
2
650
AWS Client VPNの設定でハマったポイントとその過程での気づき
amarelo_n24
1
440
新規事業開発でのAWS活用成功談&失敗談! 〜新規事業開発を専門に行うRelicならではのAWS活用〜
amixedcolor
1
140
専門家に使ってもらうAIプロダクトをつくる - 病院の医事課向けDPCコーディング支援システムの設計と評価
hagino3000
4
1k
こんなに変わった! AWSネットワークの常識
shotashiratori
16
11k
現地速報! Microsoft Ignite アップデートレポート
kasada
1
460
さようならSSH鍵、こんにちはゼロトラスト ― AIフレンドリーで快適な自宅鯖SSH
atalie2m
14
7.5k
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
516
110k
エンジニアに許された特別な時間の終わり
watany
109
250k
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Claude Code のすすめ
schroneko
67
230k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.7k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Un-Boring Meetings
codingconduct
0
510
Agile that works and the tools we love
rasmusluckow
331
22k