Test Driven Development
Test Driven Development
vs
Behavior Driven
Development
Presenters:
Muhammad Rizwan, Aksam Ali
• Traditional Development Challenges
• What is TDD
• TDD cycle
Agenda • Advantage of TDD
• What is BDD?
• How it works?
• Example of BDD
2
Traditional
Development
Flow
Traditional
Development
Challenges
Cost of change vs
Size of code
Problems with Unit Test at the
end
• Testing Does not give direct feedback to design
and programming
• Most of the times, after implementing the code
Unit Tests are omitted.
• Writing tests after developing code often results
in "happy path" testing
Test Driven Development
Test Driven Development
• Better Design
• Safer Refactoring
• Faster Debugging
• Self-Documenting Tests
Role of QA in TDD
• Usability Testing
When TDD is not a good fit
Focus on the testing the app Focus is on the lower level of the
functionality and whether it meets code, testing on a per class basis
the acceptance criteria or not
25
Thank You for participating!
www.confiz.com 26
26