essential tdd lesson-brief-intro-tdd
TRANSCRIPT
Outline1. What is TDD?
2. Why TDD?
3. What are the steps in TDD?
4. Why start with a failing test?
5. How to write a failing test?
Outline
6. Why be minimal?!
7. How TDD separates the What from How?
8. How to get all benefits of TDD?
9. What makes TDD difficult?
–Kent Beck
Clean code that works gives you a chance to learn all the lessons that the code has to teach you. If you only
slap together the first thing you think of, you never have time to think of a second, better thing.
5. How to write a failing test• What is our System Under Test’s (SUT)
responsibility?
• What should it do?
• What is the API for making the SUT do this?
• What does the SUT need to fulfill its responsibility?
• What output are there to observe?
• How can we tell it worked correctly?