INTRO TO TDD

WHAT IS
"TESTING"?

WHY
NOT
TO TEST?

WHY TO TEST?

WHAT IS TDD?

Test Driven Development

THREE
RULE
OF TDD

You are not allowed to write any production code unless it is to make a failing unit test pass.
 

You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures.
 

You are not allowed to write any more production code than is sufficient to pass the one failing unit test.

GIVEN
WHEN
THEN

RED

GREEN

REFACTOR

THE ART OF TDD

UNIT
INTEGRATION
END 2 END

COMPILATION "TESTS"

UNSTRUCTURED
TALK

intro to tdd

By nadav

intro to tdd

  • 1,038