You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: using/solving-exercises/tdd.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@ Test-Driven Development (sometimes called Test-First Development or Test-Driven
4
4
5
5
## On Exercism, the tests _are_ the requirements!
6
6
7
-
Each exercise you work on will have some instructions describing in general terms what you need to do.
7
+
All Practice Exercises you work on (those ones that don't teach you a new concept) will have some instructions describing in general terms what you need to do.
8
8
By design, these instructions do not account for programming-language-specific implementation details because they are shared by all of Exercism’s 70+ language tracks.
9
9
Some language tracks will append more specific details for you, but not all of them do.
10
10
11
-
When you start working on an exercise, give the instructions a careful read.
11
+
When you start working on a Practice Exercise, give the instructions a careful read.
12
12
They will give you a broad overview of how you go about implementing a solution.
13
13
But you will have to read the _tests_ to understand the full and exact requirements:
14
14
@@ -17,12 +17,12 @@ But you will have to read the _tests_ to understand the full and exact requireme
17
17
- How are you expected to handle exceptions? And so on.
18
18
19
19
You have solved an exercise when all the provided tests run and pass.
20
-
In other words, your solution is not just an interpretation the instructions that "looks right", your solution is a program that _satisfies the given tests_.
20
+
In other words, your solution is not just an interpretation of the instructions that "looks right", your solution is a program that _satisfies the given tests_.
21
21
**The tests represent the complete requirements for the exercise.**
22
22
23
23
## Rationale for Test-Driven Development
24
24
25
-
While it may seem like putting the cart before the horse, there are several good reasons why you might want to write unit tests before writing the implementation code:
25
+
While it may seem like "putting the cart before the horse", there are several good reasons why you might want to write unit tests before writing the implementation code:
26
26
27
27
1. Design.
28
28
It forces you to think first about the design of the **interface** to the code, instead of jumping straight to the implementation.
0 commit comments