Run ABAP Unit Tests
sap_run_unit_testsRun ABAP Unit tests for any ABAP object and get pass/fail results per test method to verify changes before activation or release.
Instructions
Execute ABAP Unit tests for an object and return pass/fail results per test method.
Runs all test classes (FOR TESTING) contained in or associated with the object. Useful for verifying changes before activating or releasing.
Args:
object_type, object_name (and function_group for functions).
response_format.
Returns (json): { objectName, total, passed, failed, errors, skipped, testClasses: [{name, methods: [{name, outcome, alerts: [{kind, title, details?}]}]}] }.
Examples:
"Run tests for ZCL_FOO" -> object_type='class', object_name='ZCL_FOO'.
"Did my last edit break anything?" -> run tests for the changed class. Notes:
Object must have test classes defined. No tests = total=0.
Requires S_DEVELOP authorization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_name | Yes | Object name (e.g. 'ZCL_FOO' for a class with local test classes). | |
| object_type | Yes | Object kind containing the test classes. | |
| function_group | No | Required when object_type='function'. | |
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |