Skip to content

Commit f4610a5

Browse files
authored
Merge pull request #4066 from shaedrich/tdd
Add topic "TDD"
2 parents 9ce07b9 + a62d012 commit f4610a5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

topics/tdd/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
aliases: test-driven-development
3+
created_by: Kent Beck, D.D. McCracken
4+
display_name: Test-driven development
5+
released: 1957
6+
short_description: Test-driven development is a development process with a test-first approach relying on requirements being converted to test cases.
7+
topic: tdd
8+
wikipedia_url: https://en.wikipedia.org/wiki/Test-driven_development
9+
related: atdd, bdd, testing, extreme-programming, continuous-testing
10+
---
11+
**Test-driven development** (**TDD**) is a software development process relying on software requirements being converted to test cases before software is fully developed, and tracking all software development by repeatedly testing the software against all test cases. This is as opposed to software being developed first and test cases created later. Programmers also apply the concept to improving and debugging legacy code developed with older techniques.
12+
13+
# Process
14+
1. Add a test
15+
2. Run all tests. The new test should fail for expected reasons
16+
3. Write the simplest code that passes the new test
17+
4. All tests should now pass
18+
5. Refactor as needed, using tests after each refactor to ensure that functionality is preserved
19+
20+
Repeat.

0 commit comments

Comments
 (0)