Skip to content

Commit

Permalink
Clarify that test breakages might be caused by poorly designed code, …
Browse files Browse the repository at this point in the history
…not just poorly designed tests
  • Loading branch information
Gudahtt committed Nov 7, 2024
1 parent d90eee3 commit e293795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/testing/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This is the main purpose of tests. Take care to ensure that each test actually f

### 3. Tests should not break often

It's expected that tests will break when we change the behavior or APIs under test. But if a test breaks often from refactors, or from changes to behavior or APIs not directly under test, it's sign that the test may be poorly designed.
It's expected that tests will break when we change the behavior or APIs under test. But if a test breaks often from refactors, or from changes to behavior or APIs not directly under test, it's sign that the test (or the code-under-test) may be poorly designed.

Test breakages are expensive. We should do what we can to minimize them.

Expand Down

0 comments on commit e293795

Please sign in to comment.