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
Save the world: design for testability
Search
GDG Aracaju
February 07, 2015
Programming
65
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Save the world: design for testability
Presentation by @lucasxas
GDG Aracaju
February 07, 2015
Transcript
10 slides
design for testability Save the world Lucas Xavier @lucasxavier
About me Lucas Xavier @lucasxavier • Lucas Xavier - Software
Engineer for five years - Test Specialist, UFPE - Bsc in Information Systems, UFS - Nonsense humour - Game of Thrones - Rock!
Agenda • Value proposition • What’s testability? • Best practices
• Anti-patterns • Unit Testing and TDD • Hands-on! Lucas Xavier @lucasxavier
Value proposition • Design + coding + debugging + testing
• Certainties in life • Death • Taxes • Bugs • Early feedback Lucas Xavier @lucasxavier
What’s testability? • Repeatable • Easy to Write • Easy
to Understand • Fast Lucas Xavier @lucasxavier
What’s testability? • Components: • Control • Visibility • Operability
• Simplicity • Understandability • Suitability • Stability Lucas Xavier @lucasxavier
Best practices • Set up and teardown • KISS •
Loose coupling • Dependency injection • Elimination of globals • Clear code Lucas Xavier @lucasxavier
Anti-patterns • Unclear execution paths • Train Wrecks • Dependencies
between test cases • Testing precise timing or performance • All-knowing oracles • Slow running tests Lucas Xavier @lucasxavier
Unit Testing and TDD • Unit Testing • Test Driven
Development • Unit Testing is a component of TDD Lucas Xavier @lucasxavier
Hands-on! Lucas Xavier @lucasxavier
More Decks by GDG Aracaju
See All by GDG Aracaju
Como aumentar a sua produtividade no Android Studio
gdgaracaju
0
180
Firebase e Android
gdgaracaju
0
110
Aplicações em Asp.NET WebAPI 2.2 e AngularJS
gdgaracaju
2
130
Android + Chromecast
gdgaracaju
1
82
Introdução ao Android Wear
gdgaracaju
0
57
Backend para aplicativos mobile
gdgaracaju
0
51
Git
gdgaracaju
0
95
Segurança no Android
gdgaracaju
0
56
Android Fundamentals Lesson 3 review
gdgaracaju
0
62
Other Decks in Programming
See All in Programming
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
380
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
180
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
340
protojson における文字化けの扱い
kazuki1023
0
420
GraphQL の onError と Nullability のこれから
quramy
0
220
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.9k
Будущее локальных LLM – Алексей Голобурдин, PythoNN
sobolevn
0
120
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
350
LLM 101
dalinaum
0
490
Spec-driven Development with AI
simas
PRO
0
2.3k
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
5.7k
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
5.9k
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
1
240
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
630
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
sira's awesome portfolio website redesign presentation
elsirapls
0
510
Speed Design
sergeychernyshev
33
2.2k
Fireside Chat
paigeccino
43
4.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Automating Front-end Workflow
addyosmani
1370
210k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
620
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k