Skip to content

Commit f32141a

Browse files
committed
Finish TDD section
1 parent b3b1f35 commit f32141a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

rules/0120-Tests.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ So what is the cycle? Essentially, it's the following:
2626
4. Run tests and verify that the new solution passes all tests
2727
5. Refactor your solution (optional)
2828

29+
That's it. Note that the important part is the very first step: you write the
30+
tests first. "Why?", you're probably asking. "I know my solution already!"
31+
Well, are you sure about that? Some katas have long standing issues since the
32+
original author didn't check a few edge cases.
33+
34+
However, since Codewars isn't running on your own machine, you should adjust
35+
the cycle a little bit and add more than a single test. The cycle works best
36+
with fast iterations, and the remote nature of Codewars makes this a little bit
37+
hard. Still, writing at least part of your tests first is __very__ recommended.
2938

3039
## Make your test descriptive
3140

0 commit comments

Comments
 (0)