Skip to content

Commit f61fac6

Browse files
Update db-access-in-ut.md
1 parent 5ba3e80 commit f61fac6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/checks/db-access-in-ut.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Besides, test classes having AMDP (this happens only in productive mode) are alr
2424

2525
· Test-Double Framework (isolating the database access in classes an mocking them via TDF).
2626

27+
Ideally, there has to be a data access class for every (customizing, master, or transactional) database table. That one shall be tested with one of the mocking frameworks listed above. All backend code layer above this boundary shall be tested with object-oriented test doubles according to the test pyramid strategy. There may be still some non-isolated E2E tests across systems, but these shall not test functionality, rather focus on connectivity, networking and things like that.
28+
2729
### How to solve the issue?
2830

2931
The solution is to mock these DB accesses with a proper dependency isolation technique.

0 commit comments

Comments
 (0)