Unit testing

Testing ABAP logic without a running business process — and the test doubles that make dependencies on the database and on framework services tractable.

Showing artifacts, examples and content with confirmed ABAP Cloud applicability. View All ABAP

Overview

SAP SHIPS

ABAP Unit and its test double frameworks run unchanged in ABAP Cloud. SAP's own RAP400 workshop writes ABAP Unit tests for a RAP business object from an ABAP Cloud project on a BTP ABAP Environment trial system, doubling its CDS entities for reads with the CDS Test Double Framework and its database tables for writes with the ABAP SQL Test Double Framework, and the abap-cheat-sheets unit-testing examples target the same environment.

Not covered: A test double can only stand in for an object the code under test is allowed to reference, so it inherits ABAP Cloud's general restriction to released repository objects: an unreleased table or CDS entity is as out of reach for a test double as it is for production code.

Read from the artifacts that state abap-cloud: abap-unit-runner and abap-test-container.

THE COMMUNITY ADDS

Test runners and test containers from outside SAP that state ABAP Cloud add to ABAP Unit here.

Artifacts3

3 of 3 artifacts
ArtifactSignals
Apps1
abap-unit-runnerApplication job that runs and schedules ABAP Unit tests in the cloud
Signals
none
Packages2
abap-test-containerGitHub-hosted test data container for ABAP Cloud
Signals
none
abap2UI5 headless frontendDrives abap2UI5 app classes from ABAP Unit tests
Signals
Functional boundary

Seen working2

ArtifactSignals
Samples2
SAP-samples/abap-platform-rap-workshopsMaterials for the RAP400 to RAP620 ABAP Cloud workshops
none
teched2025-AD162TechEd 2025 workshop on a Fiori app with ABAP Cloud and Joule
none

Details

Coverage
statecore and community, ABAP, ABAP Cloud
assessed
relationshipunassessed
For your agent
Ref
capability:abap-unit-testing
JSON
/capabilities/abap-unit-testing.json
MCP
Connecting an agent