CreateCdsUnitTest
Generates and activates an ABAP unit test class for a CDS view, verifying test-double support and embedding local FOR TESTING classes.
Instructions
Create ABAP Unit tests for a CDS view: check the view supports CDS test doubles, create a test class holding the local test classes, activate it.
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 | 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. |