View
42
Download
0
Category
Preview:
DESCRIPTION
Not enough data!. Moar Data!. Data can be real?!. Output from GPX Editor. Speed (kmph) – Altitude (m/100). Distance (km). Runkeeper design. Distance (km) – time (minutes). Waypoints. TDD Cycle. Always fake it if you can!. Tie your objects to interfaces Mock them whenever you can. - PowerPoint PPT Presentation
Citation preview
Not enough data!
Moar Data!
Data can be real?!
Output from GPX Editor
Distance (km)
Spe
ed (
kmph
) –
Alti
tude
(m
/100
)
Runkeeper design
Waypoints
Dis
tanc
e (k
m)
– tim
e (m
inut
es)
TDD Cycle
Always fake it if you can!
• Tie your objects to interfaces• Mock them whenever you can
Fake Talk
• Fakes• Stubs• Mocks
Why fake it?
• It’s easier • There is a good kind of lazy• Promotes RTFM
RTFM!
• A test should be– Repeatable– Trustworthy– Fast– Maintainable
Questions
Recommended