Let's test! @ codemotion 23/03/2013
-
Upload
david-funaro -
Category
Technology
-
view
2.507 -
download
6
Transcript of Let's test! @ codemotion 23/03/2013
Why automatic tests?
Let’s test!
confidence in your code
progressive input growth
no feartests as documentation easier to alter code
understand HOW code works
working software over comprehensive documentation
easy to rundon’t waste your time
feedback
Clean code that works cit. Ron Jeffries
predictable way to developlearn all of the lessons that the code has to teach you
improve the lives of the users of your softwarelet your teammates count on you, and you on them
feel good to write code
Let’s test!
How do we get to clean code that works?
Many forces drive us away from clean codeand even from clean code that works
Let’s test!
Test Driven Development
Let’s test!
Test-driven development is less and more writing test first...but TDD is about design
Test-driven development is a way of managing fear during programming
our tasks
Red: write a little test that doesn’t work
Green: make the test work quickly
Refactor: eliminate all the duplication created in merely getting the test to work
feature #1feature #2feature #3
Let’s test!
what are the benefits?
improve quality of your codebehaviours’ verification
coverage functionalitytest as documentation
long term maintainabilityvery short time feedback about bugs
collaborative working
QA from reactive to proactive
Let’s test!
ok, it’s cool but my resources are limited
I want to be cheap
I want to be fast
I want to be good
Let’s test!
What about legacy code?
Test new functionalities
Test old functionalities starting from bugs
Let’s test!