Skip to content

Commit 96cff91

Browse files
committed
Fix tdd notes
1 parent 310e3a8 commit 96cff91

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

_notes/software-testing/tdd.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ layout: notes
44
---
55

66
[Source-code]: https://gist.github.com/mjdecker/3b6150cda6916a6763b90682add216f8
7-
[TTY Plays]: https://www.cs.bgsu.edu/mdecke/classes/software_testing/notes/tty_plays/tdd/
8-
[Iteration 1]: https://www.cs.bgsu.edu/mdecke/classes/software_testing/notes/tty_plays/tdd/tdd-iteration1.txt
9-
[Iteration 2]: https://www.cs.bgsu.edu/mdecke/classes/software_testing/notes/tty_plays/tdd/tdd-iteration2.txt
10-
[Iteration 3]: https://www.cs.bgsu.edu/mdecke/classes/software_testing/notes/tty_plays/tdd/tdd-iteration3.txt
117

128
# Test-Driven Development (TDD)
139
* Software development methodology where software requirements are used to derive test cases before code is written
@@ -25,29 +21,29 @@ layout: notes
2521
6. Repeat
2622

2723
# Add a test
28-
* Each interation a new test is written
24+
* Each iteration, a new test is written
2925
* Each test case defines more of the desired behavior
3026
* Be incremental
3127

3228
# Red Phase
3329
* Run test suite
34-
* Written test is on newly unimplemented behavior and should fail
35-
* If passes, problem with test harness or test case is flawed
30+
* Written test is on the newly unimplemented behavior and should fail
31+
* If passes, problem with the test harness or the test case is flawed
3632

3733
# Make it work
38-
* Implement code to cause test to pass
34+
* Implement code to cause the test to pass
3935
* May be imperfect, inelegant
4036
* Do not implement behavior beyond the scope of the test
4137

4238
# Green Phase
4339
* Run test suite
44-
* Verify implemented code provides behavior required by test case
40+
* Verify implemented code provides the behavior required by the test case
4541

4642
# Refactor
4743
* Improve the design and implementation of the code
4844
* Do not modify behavior, test suite must still pass
49-
* Code may have been inelegent or imperfect
50-
* Several interations of TDD can compound this
45+
* Code may have been inelegant or imperfect
46+
* Several iterations of TDD can compound this
5147

5248
# Repeat
5349
* Repeat the entire process
@@ -59,17 +55,17 @@ layout: notes
5955
* [Source-code]
6056
* [TTY Plays]
6157

62-
# [Iteration 1]
58+
# Iteration 1
6359

64-
# [Iteration 2]
60+
# Iteration 2
6561

66-
# [Iteration 3]
62+
# Iteration 3
6763

6864
# Repeat Until all Functionality is Implemented/Tested
6965

7066
# TDD Retrospective
71-
* Tests and unit under test are developed incrementally
67+
* Tests and the unit under test are developed incrementally
7268
* Each test tests one new thing
7369
* A test suite encodes the desired behavior
74-
* May find out missing tests, which you add/support latter
70+
* May find out missing tests, which you add/support later
7571

0 commit comments

Comments
 (0)