CreateCdsUnitTest
Creates an ABAP Unit test class for a CDS view from supplied test source. Use it to add test-double-based tests when the view supports CDS test doubles.
Instructions
Creates an ABAP Unit test class for a CDS view (DDLS), from the test class source given, once the view supports CDS test doubles.
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": {
"cds_view_name": "<cds_view_name>",
"class_name": "<class_name>",
"package_name": "<package_name>",
"test_class_source": "<test_class_source>"
},
"name": "CreateCdsUnitTest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |
| class_name | Yes | Name of the new global class that holds the tests. | |
| package_name | Yes | Package of the new test class. | |
| cds_view_name | Yes | CDS view under test (DDL source). Must be active and testable with test doubles. | |
| test_class_source | Yes | ABAP source of the local test classes: definitions and implementations, FOR TESTING. | |
| transport_request | No | Transport request, not a task. Required for a transportable package. |