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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Gabriel Oliva
August 23, 2016
Programming
0
44
Abordando TDD no iOS
Talk apresentada no 11 CocoaHeads.
Gabriel Oliva
August 23, 2016
Tweet
Share
More Decks by Gabriel Oliva
See All by Gabriel Oliva
TDC - Acessibilidade no iOS
gabrieloliva
0
59
RxSwift Basics
gabrieloliva
0
53
Acessibilidade no iOS
gabrieloliva
0
130
Other Decks in Programming
See All in Programming
Java 21/25 Virtual Threads 소개
debop
0
280
条件判定に名前、つけてますか? #phperkaigi #c
77web
2
830
モダンOBSプラグイン開発
umireon
0
180
Nostalgia Meets Technology: Super Mario with TypeScript
manfredsteyer
PRO
0
110
我々はなぜ「層」を分けるのか〜「関心の分離」と「抽象化」で手に入れる変更に強いシンプルな設計〜 #phperkaigi / PHPerKaigi 2026
shogogg
2
590
Agentic AI: Evolution oder Revolution
mobilelarson
PRO
0
190
RailsのValidatesをSwift Macrosで再現してみた
hokuron
0
130
20260320登壇資料
pharct
0
130
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
240
How to stabilize UI tests using XCTest
akkeylab
0
140
ロボットのための工場に灯りは要らない
watany
12
3.2k
脱 雰囲気実装!AgentCoreを良い感じにWEBアプリケーションに組み込むために
takuyay0ne
3
400
Featured
See All Featured
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.5k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Agile that works and the tools we love
rasmusluckow
331
21k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
440
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
250
Optimizing for Happiness
mojombo
378
71k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
100
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!