Unit testing
Testing application logic without a running business process — and the test doubles that make dependencies on the database and on framework services tractable.
Overview
Testing ABAP logic without a running business process — and the test doubles that make dependencies on the database and on framework services tractable.
ABAP Unit is part of the language and the ADT tooling, with test seams, test doubles and the CDS test double framework.
Not covered: Inside an ABAP system. ABAP Unit runs where the code is deployed, so a test needs a system to run in, and a pipeline that has none cannot run it.
Running the same tests with no system: @abaplint/transpiler@abaplint/transpilerTranspiles ABAP 7.02 syntax to ES6 JavaScript, so ABAP code and its unit tests run on Node.js in CI without an ABAP system, with optional SQLite, PostgreSQL, Snowflake or SAP HANA drivers.community org, abap turns the source and its ABAP Unit tests into JavaScript that runs on Node.jsNode.jsA cross-platform JavaScript runtime that servers, command line tools and scripts written in JavaScript are run with. For the things here, the prerequisite a repository names when its build is a set of npm scripts. in CI, with open-abap-coreopen-abap-coreReusable ABAP functionality for code transpiled by @abaplint/transpiler: the core ABAP artifacts that code runs against on Node.js.community org, abap supplying the standard classes the output calls. open-steamgateopen-steamgateAn ABAP application server you clone and run on your own machine: transpiled ABAP serving classic /IWBEP/ OData v2 to Fiori over a local database, with no SAP system attached.independent, abap and the @abap2ui5/mcp-server@abap2ui5/mcp-serverAn MCP server that puts the abap2UI5 development loop on the machine an agent runs on: check the view the ABAP builds, photograph it, deploy the class into a sandbox, boot the app headless and read the errors.community org, abap run ABAP Unit the same way from a repository's classes, the abap2UI5 headless frontendabap2UI5 headless frontendPlays the frontend's side of the abap2UI5 request/response contract in ABAP, so an app class is driven and asserted on from a plain ABAP Unit test.community org, abap drives a whole abap2UI5 session inside an ABAP Unit test, and Modernization Agents for SAP on AWSModernization Agents for SAP on AWSAWS's suite of agents for SAP modernisation work: custom ABAP converted for S/4HANA, PI/PO interfaces moved to Integration Suite, BW objects moved to SAP Datasphere, deployed into a customer's own AWS account and reached only after registration.partner, abap generates and runs tests either side of a conversion.
Artifacts
Content
Seen working
Details
Coverage
For your agent
- Ref
capability:abap-unit-testing- JSON
- /capabilities/abap-unit-testing.json
- MCP
- Connecting an agent