RunAbapUnit
Runs ABAP Unit tests for a class, program, function group, CDS view, or package, returning the test result or a run ID for later status checks.
Instructions
Runs the ABAP Unit tests of a class (CLAS), report (PROG), function group (FUGR), function module's group, CDS view (DDLS), package (DEVC), waiting for the result or giving the run's id at once.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "RunAbapUnit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | true (default): the call reads the run's status at once, and a run SAP answers running again by long polling, SAP holding each read until the run finishes, and returns the result of a run SAP answers finished, the call lasting as long as the run; a run SAP reports unstarted is read again by long polling, and a run that long-polled read reports unstarted returns the run_id and that status, and any other status is an error stating what SAP answered. false: the call answers the run_id right after the start, and the run's status and result are read by run_id. A long run under a client with a request time limit is started with false. | |
| scope | No | Which tests the run covers. Assigned tests are test classes linked to the object by an ABAP Doc @testing relation (the tests of a CDS view are such). | |
| detail | No | How much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent. | terse |
| target | Yes | What the run covers: an object (kind object, name, type) or a package (kind package, name, include_subpackages). | |
| duration | No | Durations the run accepts. | |
| risk_level | No | Risk levels the run accepts. |