generate-abap-unit-test
Installation
SKILL.md
Generate ABAP Unit Test
Generate ABAP Unit tests for classes with dependency analysis, test doubles, and method-level surgery.
This skill replicates SAP Joule's "Unit Test Generation" capability for ABAP classes by combining ARC-1 (SAP system access) with mcp-sap-docs (documentation & best practices). Unlike the CDS unit test skill which targets CDS entities, this skill targets ABAP classes and uses interface-based test doubles instead of CDS Test Double Framework.
Smart Defaults (apply silently, do NOT ask)
| Setting | Default | Rationale |
|---|---|---|
| Test class name | ZCL_TEST_<CLASS> |
Standard convention |
| Methods to test | All public methods | User can narrow after seeing the list |
| Package | $TMP |
Fast prototyping |
| Risk level | HARMLESS |
Test doubles don't modify real data |
| Duration | SHORT |
Unit tests should be fast |
| Mock strategy | Interface-based test doubles | Cleanest pattern for dependency injection |