TDD It’s short for Test Driven Development!
Aug 19, 2015
TDDIt’s short for Test Driven Development!
-Kent Beck
“Do the simplest thing that could possibly work.”
From Ticket to Test.
given: when: then:
I’m a user on the profile page
I update my last name
It should save successfully
$ npm test
Run our Test
Fail.
This failure is good.
• We have a test that accurately represents a problem.
• Our test runs
• Not broken nor did it break the test-runner.
$ npm test
Run our Test
Success.
TDD Cycle
Refactor.