Test Driven Development
Unit Testing
It was satisfying to write code without TESTS
Run it in
browser
or
va_dump() it
Write
code Something went
wrong ?
Yes No
Next
>>
FLASH IN THE PAN
● Couldn’t Agile.
● Fixing one bug will result alot more.
● Unoptimizabel.
● Couple line of code can break the whole application ( Break Code ).
● Can’t updatable.
● Increase Costs and Times.
SOLUTION TDD Test Driven Development
Unit Testing
1. You are not allowed to write any production code without
first writing a test that fails because the production code
does not exist.
1. You are not allowed to write more of a test than is sufficient
to fail; including failure of compilation.
1. You are not allowed to write more production code than is
sufficient to pass the currently failing test.
● Prevents long hours of
debugging and rework
● Ensure our performance
● 100% Coverage feels so
good
● Better maintainability
“You are not allowed to write any
production code without first writing a
test ”
- From Uncle Bob

TDD

  • 1.
  • 2.
    It was satisfyingto write code without TESTS Run it in browser or va_dump() it Write code Something went wrong ? Yes No Next >>
  • 3.
    FLASH IN THEPAN ● Couldn’t Agile. ● Fixing one bug will result alot more. ● Unoptimizabel. ● Couple line of code can break the whole application ( Break Code ). ● Can’t updatable. ● Increase Costs and Times.
  • 4.
    SOLUTION TDD TestDriven Development Unit Testing 1. You are not allowed to write any production code without first writing a test that fails because the production code does not exist. 1. You are not allowed to write more of a test than is sufficient to fail; including failure of compilation. 1. You are not allowed to write more production code than is sufficient to pass the currently failing test. ● Prevents long hours of debugging and rework ● Ensure our performance ● 100% Coverage feels so good ● Better maintainability
  • 5.
    “You are notallowed to write any production code without first writing a test ” - From Uncle Bob