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
55
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
Transcript
21 slides
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!
More Decks by Gabriel Oliva
See All by Gabriel Oliva
TDC - Acessibilidade no iOS
gabrieloliva
0
89
RxSwift Basics
gabrieloliva
0
77
Acessibilidade no iOS
gabrieloliva
0
160
Other Decks in Programming
See All in Programming
protojson における文字化けの扱い
kazuki1023
0
450
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
270
Beyond Chatbots: Agentic UI with Open Standards @W-JAX 2026, München
manfredsteyer
PRO
0
120
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
120
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
360
AppFunctionsの内部実装を紐解く
hiroaki404
0
110
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
200
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
320
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
480
祈るテストから、探索するテストへ 〜Lincheckではじめる並行処理テスト〜
yyh_gl
0
410
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
220
はじめてのPLATEAU
nokonoko1203
1
660
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
580
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
330
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
4
1.3k
From π to Pie charts
rasagy
1
460
Scaling GitHub
holman
464
140k
Speed Design
sergeychernyshev
33
2.2k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k