CDS UNIT TESTING
Chris Swanepoel
DISCLAIMER
“The content of this
presentation is not
endorsed by SAP SE in
any way.
Any ridiculous opinions
or ideas are mine
alone.”
CDS
Challenges
ViewView
View
TableTable
Unit Test
ABAP DBMS
ViewView
View
Under Test
DB
table
DB
table
DB
table
DB
table
DB
table
DB
table
ViewView
DB
table
DB
table
DB
table
DB
table
Double DB
table
DB
table
Double
DEMO
Unit Testing for CDS can be …
• Fully automated
• Automatically creates test doubles for “dependent on” database
tables, views
• Automatically replaces dependencies (original data sources  test
doubles)
• Isolated
• Easy to implement
• Fast

CDS Unit Testing