Skip to content

Commit cb4140c

Browse files
committed
add comment to fragile tests
1 parent eea8fea commit cb4140c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,6 +1685,8 @@ final class TestUserRepository extends TestCase
16851685
}
16861686
```
16871687

1688+
:heavy_check_mark: Testing repositories in that way leads to fragile tests and then refactoring is very hard. To test repositories write integration tests.
1689+
16881690
## Test fixtures
16891691

16901692
:x: Bad:

0 commit comments

Comments
 (0)