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
Abordando TDD no iOS
Search
Gabriel Oliva
August 23, 2016
Programming
44
0
Share
Abordando TDD no iOS
Talk apresentada no 11 CocoaHeads.
Gabriel Oliva
August 23, 2016
More Decks by Gabriel Oliva
See All by Gabriel Oliva
TDC - Acessibilidade no iOS
gabrieloliva
0
62
RxSwift Basics
gabrieloliva
0
56
Acessibilidade no iOS
gabrieloliva
0
140
Other Decks in Programming
See All in Programming
「OSSがあるなら自作するな」は AI時代も正しいか ── Build vs Adopt の新しい判断基準
kumorn5s
7
2.2k
ソフトウェア設計の結合バランス #phperkaigi
kajitack
0
490
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
360
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
5
1.6k
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
220
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
5
1.1k
[RubyKaigi 2026] Require Hooks
palkan
1
300
Agent Skills を社内で育てる仕組み作り
jackchuka
1
1.6k
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
150
サークル参加から学ぶ、小さな事業の回し方
yuzneri
0
140
AlarmKitで明後日起きれるアラームアプリを作る
trickart
0
120
Kubernetesを使わない環境にもCloud Nativeなデプロイを実現する / Enabling Cloud Native deployments without the complexity of Kubernetes
linyows
3
320
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
70
39k
BBQ
matthewcrist
89
10k
ラッコキーワード サービス紹介資料
rakko
1
3.2M
Code Reviewing Like a Champion
maltzj
528
40k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
160
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
110
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Fireside Chat
paigeccino
42
3.9k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Transcript
ABORDANDO TDD NO IOS Utilizando Xcode, swift e boa fé.
GABRIEL OLIVA ➤ Mineiro que não come queijo; ➤ iOS
developer @ CI&T; ➤ Coffee addicted; ➤ Baterista aposentado. @gabrieloliva_ /gabrieloliva
AGENDA ➤ O que é TDD? ➤ Por que utilizar
TDD? ➤ Como utilizar TDD no iOS?
O QUE É TDD?
O QUE É TDD? ➤ Escrever primeiramente o teste falho
➤ Escrever a quantidade mínima de código para o teste passar ➤ Refatorar
O QUE É TDD?
POR QUE UTILIZAR TDD?
POR QUE UTILIZAR TDD? 0 20 40 60 80 Hoje
1 mês depois 2 meses depois 3 meses depois
POR QUE UTILIZAR TDD? ➤ No final das contas, TDD
é sobre automatizar essa processo chato de escrever teste
VANTAGENS DO TDD ➤ Alta cobertura de teste ➤ Menos
debug ➤ Testes documentam o código ➤ Fácil manutenção ➤ Código modular ➤ Você só escreve o código que precisa
DESVANTAGENS DO DDD ➤ Não é bala de prata ➤
Parece mais lento no início ➤ Todos os membros do time precisam utilizar ➤ Não é recomendável para protótipos
COMO UTILIZAR TDD NO IOS
COMO UTILIZAR TDD NO IOS? SUnit 1994 OCUnit 1998 OCUnit
no Xcode 2005
“ Core Data 1.0 is not perfect, but it is
a rock solid product that I’m damned proud of. The quality and performance achieved could not have been done without the use of unit testing. -Bill Bumgarner http://www.friday.com/bbum/2005/09/24/unit-testing/
COMO UTILIZAR TDD NO IOS? OCUnit no iPhone SDK 2.2
2008 Renomeado para XCUnit 2012 Teste unitário se torna first-class citizen com introdução do XCTest 2013
TDD NO XCODE
E AGORA? ➤ Apple promove teste unitário (XCTest, UITesting, Apple
Server, etc) ➤ Vai levar tempo… ➤ Pratique!
LIVROS
INTERNET http://nshipster.com/unit-testing/
INTERNET https://www.objc.io/issues/15-testing/
OBRIGADO!