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
Abordando TDD no iOS
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Gabriel Oliva
August 23, 2016
Programming
50
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
74
RxSwift Basics
gabrieloliva
0
68
Acessibilidade no iOS
gabrieloliva
0
160
Other Decks in Programming
See All in Programming
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
570
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
160
App Intentsのビルドプロセスを支える技術
kntkymt
0
430
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
4
3.6k
JRuby: Past, Present, and Future
headius
0
190
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
330
iOSDC2026登壇資料.pdf
riofujimon
0
180
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
1
570
Webの地図
yosuke_furukawa
PRO
6
4.7k
AI × TiDD / 2026.09.05 Redmine 大阪
tokudiro
1
180
Family mrubyの進捗
kishima
1
130
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
0
1.8k
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
530
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
250
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
460
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Bash Introduction
62gerente
615
220k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
320
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
280
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
240
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
900
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
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!