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
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
63
RxSwift Basics
gabrieloliva
0
60
Acessibilidade no iOS
gabrieloliva
0
140
Other Decks in Programming
See All in Programming
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
370
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
290
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
730
Agentic UI
manfredsteyer
PRO
0
190
Java × distroless で 軽量なコンテナイメージを / Java on Distroless
contour_gara
0
560
スマートグラスで並列バイブコーディング
hyshu
0
260
その問い、本当に正しいですか?AI時代のエンジニアに必要な哲学と認知科学 / ai-philosophy-cognitive-science
minodriven
11
6.1k
Mujeres en SEO Summit 2026 - Greatest Disaster Hits en Web Performance
guaca
0
190
New "Type" system on PicoRuby
pocke
1
1k
TypeScript+Orvalで実現する型安全かつ堅牢でスケーラブルなマルチチャネル通知基盤 / TSKaigi Night talks ~after conference~
d0riven
0
360
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
dRuby over BLE
makicamel
2
380
Featured
See All Featured
The Curse of the Amulet
leimatthew05
2
13k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Done Done
chrislema
186
16k
Code Reviewing Like a Champion
maltzj
528
40k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
230
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
44k
How GitHub (no longer) Works
holman
316
150k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
560
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
610
Google's AI Overviews - The New Search
badams
0
1k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
200
sira's awesome portfolio website redesign presentation
elsirapls
0
280
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!