Skip to content

Commit 135469c

Browse files
committed
add sentence about unit testing
1 parent 332baeb commit 135469c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/pages/learn/01_tutorial/08_more-resources/02_debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Even if `println()` does meet your needs at the moment, it won't forever. Learni
5050
<a id="unit">&nbsp;</a>
5151
## Why not unit testing?
5252

53-
Nothing is wrong with unit testing. Unit tests are great. They document expected behavior. They tell you if an unexpected value is returned. They help you understand the behavior of the code. And sometimes they can even give you big clues about what is wrong with the code. However, they don't tell you what is happening inside the broken code when it isn't returning the right value. For that, you use a debugger with the unit test to see what is going on inside the method. And once you fix your code, unit tests can help catch new bugs from being introduced!
53+
Unit testing is writing code to test small pieces of code at the click of a button. Nothing is wrong with unit testing. Unit tests are great. They document expected behavior. They tell you if an unexpected value is returned. They help you understand the behavior of the code. And sometimes they can even give you big clues about what is wrong with the code. However, they don't tell you what is happening inside the broken code when it isn't returning the right value. For that, you use a debugger with the unit test to see what is going on inside the method. And once you fix your code, unit tests can help catch new bugs from being introduced!
5454

5555
```java
5656
@Test

0 commit comments

Comments
 (0)