como testar seu projeto com view code
TRANSCRIPT
View code + tests
Agenda· What changed?
· Better approach?· Less repetition
· Forget old recipes
How important is init ?
more control over init
means
Better code
and
Better tests
why?
You can:· declare more things as let
· Inject more things using init· declare less things as Optional
· less Optional means less paths to test
seams like a improve
Forget about ...
old test recipes
fancy mock libs
all you need is love init