Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test-driven development vs. Test-first development

What is test-first development and how does it corelate to TDD? Is test-first development a general name for things like TDD? If yes, what other test-first practices do exist?

like image 540
SiberianGuy Avatar asked Jul 07 '10 05:07

SiberianGuy


1 Answers

Test First Development is slightly broader, slightly less specific, than TDD. You can write an acceptance test before coding, then code to make it pass; that's TFD but not TDD. TDD is more specifically about unit tests - so there is a tighter implied granularity - and includes the red-green-refactor cycle: write your failing (unit) test; demonstrate that it fails; make it pass; demonstrate that it passes; look for opportunities to refactor. TFD doesn't preclude any of those things, but it also doesn't require them.

like image 72
Carl Manaster Avatar answered Jan 02 '23 02:01

Carl Manaster