Test-driven development: Difference between revisions

Content deleted Content added
m Reverted edits by 2001:44C8:4521:6BF9:1:0:B9E6:B5E6 (talk) (AV)
m Word missing
Line 2:
{{Software development process}}
 
'''Test-driven development''' ('''TDD''') is a way of writing [[source code|code]] that involves writing an [[test automation|automated]] [[test case]] that fails, then writing just enough code to make the test pass, then [[refactoring]] both the test code and the production code, then repeating with another new test case.
 
Alternative approaches to writing automated tests is to write all of the production code before starting on the test code or to write all of the test code before starting on the production code. With TDD, both are written together.