2. Agenda
Why TDD
TDD Cycle/3 Principles of TDD
Advantages and Myths
Popular tools/technologies
Questions
3. Why TDD
Design driven development
Design first considering future
Change requirements
Regression
Test first
Focus still functional. Tests were not driving development
Excess code
Constant emphasis on refactoring
4. TDD Cycle/3 Principles
Red-Green-Refactor
3 – Principles
Do not write a code unless there is a failing test
Write only that much which is required to pass that failing test
Do not write a new test unless all other tests are green
5. Advantages and Myths
Advantages
Faster feedback (Test pyramid)
Creates SOLID code
Secures code from regression defects
Myths
Design gets a hit.
Time consuming
Developers and tester are two different roles
VERY VERY IMPORTANT – MINDSET CHANGE