Test Driven Development
by Mireia Sangalo
@MyPitit
1. What is TDD
2. Why do we need to test our code?
3. Test-driven development cycle
Agenda
Agenda
1. What is TDD
2. Why do we need to test our code?
3. Test-driven development cycle
1. What is TDD
• Test Driven Development (TDD)
• Is a software development process
• Relies on the repetition of a very short development
cycle
Agenda
1. What is TDD
2. Why do we need to test our code?
3. Test-driven development cycle
2. Why do we need to test
our code?
• Well-tested software
• Bug free software
• Low maintenance code
• Less costs
We do not want to deliver
untested software
Test first
Well tested software: durable, without
extra costs, easy to maintain and bug free
Agenda
1. What is TDD
2. Why do we need to test our code?
3. Test-driven development cycle
1. Test-driven development
cycle
• Add a Test
• Run all the tests and see if the new test fails
• Write the code
• Run tests
• Refractor
• Repeat
https://github.com/FAC-
QMUL/TDD/tree/master/
TDD/TDD
Learn more here:
Questions?

Test Driven Development