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
MadCode 13 Webinar
Search
vmalakhovskiy
October 14, 2016
Programming
0
50
MadCode 13 Webinar
Introduction to tests in IOS. Theoretical part
vmalakhovskiy
October 14, 2016
Tweet
Share
More Decks by vmalakhovskiy
See All by vmalakhovskiy
Engineering team best friend - CI/CD
vmalakhovskiy
0
72
Data driven view controllers
vmalakhovskiy
0
430
Cocoaheads #13
vmalakhovskiy
0
43
Developing apps for Apple Watch
vmalakhovskiy
0
68
Why do you need to switch from Obj-C to Swift, or let's talk about ReactiveCocoa v4
vmalakhovskiy
0
510
Data processing components architecture in mobile applications
vmalakhovskiy
0
83
Other Decks in Programming
See All in Programming
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
230
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
200
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
6
4.6k
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
110
Basic Architectures
denyspoltorak
0
670
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
Patterns of Patterns
denyspoltorak
0
1.4k
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.1k
AgentCoreとHuman in the Loop
har1101
5
230
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
400
AI & Enginnering
codelynx
0
110
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
How to build a perfect <img>
jonoalderson
1
4.9k
Building an army of robots
kneath
306
46k
sira's awesome portfolio website redesign presentation
elsirapls
0
150
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.6k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
320
Designing for humans not robots
tammielis
254
26k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
940
Everyday Curiosity
cassininazir
0
130
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
Transcript
Introduction to tests in iOS Malakhovskyi Vitalii Senior iOS Developer
@
Overview - Why do we need tests? - TDD, BDD,
Stub, Mock, Unit test, Integration test, Dependency Injection Demo - Objective-C, Swift
Do we really need tests?
How much time do I spend to write the code?
And then to debug it…
Design Implement Test
Time 5000 Codebase
Kent Beck
Design Implement Test
Test/Design Implement
Code Test Code Test Code Test Code Test Code Test
Code Test Code Test Code Test Code Test
Add tests See tests fail Write code Run tests Refactor
Test Driven Development
Test/Design Implement
BDD is about scenarios
Request Parse Convert Failure Failure Failure Result
None
None
Always use BDD!
System under test
System under test Unit tests
System under test Integration tests Class Class Class Class
System under test Class Class
System under test Class Class
System under test Class Class
System under test Stub Mock Integration tests
None
What to read? • https://www.amazon.com/Test-Driven- Development-Kent-Beck/dp/0321146530 • http://blog.cleancoder.com
Contact me: purpleshirted crimsongf Vitaliy Malakhovskiy