UpdateUnitTest
Rewrites an ABAP class's local test classes from provided source and activates the class, enabling updated unit tests to run outside batch mode.
Instructions
Writes test_class_source as the ABAP Unit test classes of the ABAP class named by class_name. The class's local test classes are rewritten, and the class is activated. Runs outside batch mode.
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": {
"class_name": "<class_name>",
"test_class_source": "<test_class_source>"
},
"name": "UpdateUnitTest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it). | terse |
| class_name | Yes | Class that holds the tests. Must already exist. | |
| test_class_source | Yes | ABAP source of the local test classes: definitions and implementations, FOR TESTING. Replaces what the include holds. | |
| transport_request | No | Transport request, not a task. Required for a transportable object. |