generate-abap-unit-test

Generates ABAP unit tests for classes with dependency analysis and interface-based test doubles.

156|39|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/arc-mcp/arc-1 --skill generate-abap-unit-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-abap-unit-test
Source: https://github.com/arc-mcp/arc-1/tree/main/skills/generate-abap-unit-test
Command: npx skills add https://github.com/arc-mcp/arc-1 --skill generate-abap-unit-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires arc-1, mcp-sap-docs, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of ABAP unit tests for classes, reducing manual effort and ensuring comprehensive test coverage.

Core Features & Use Cases

  • Automated Test Generation: Generates unit tests for ABAP classes based on class source code and dependencies.
  • Dependency Analysis: Analyzes class dependencies and generates test doubles for interfaces and database access.
  • Method-Level Surgery: Inserts tests at the method level with surgical precision, ensuring all scenarios are covered.
  • Use Case: When asked to "generate unit tests for this class", use this skill to automatically create tests for a given ABAP class.

Quick Start

Use the generate-abap-unit-test skill to generate tests for the class 'ZCL_TRAVEL_HANDLER'.

Frequently Asked Questions about generate-abap-unit-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate ABAP unit tests automatically?

To generate ABAP unit tests automatically, use this skill to analyze class source code and dependencies, creating interface-based test doubles and surgical method-level tests.

How does dependency analysis work for ABAP test doubles?

Dependency analysis for ABAP test doubles works by scanning class source code to identify interfaces and database access points, then automatically generating test doubles to isolate methods during unit testing.

Do I need SAP system access to generate ABAP unit tests?

Yes, you need SAP system access to generate ABAP unit tests. The skill utilizes ARC-1 for system connectivity and requires access to the class source code to perform dependency analysis and test generation.

Can I create test doubles for database access in ABAP classes?

Yes, you can create test doubles for database access in ABAP classes. The skill analyzes class dependencies and generates interface-based test doubles to isolate database interactions during automated unit testing.

What is the best way to add unit tests to an existing ABAP class?

The best way to add unit tests to an existing ABAP class is through method-level surgery, which inserts tests with surgical precision to ensure all scenarios are covered without disrupting the original source code structure.

Are there limitations when generating tests for ABAP classes?

Limitations when generating tests for ABAP classes include the strict requirement for SAP system access via ARC-1 and mcp-sap-docs, meaning tests cannot be generated offline without class source code and system connectivity.