generate-cds-unit-test

Generate ABAP unit test classes for CDS entities using the CDS Test Double Framework.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the generation of ABAP Unit test classes for CDS entities, reducing the time and effort required to create comprehensive test coverage.

Core Features & Use Cases

  • CDS Entity Test Generation: Automatically generate test classes for CDS entities using the CDS Test Double Framework.
  • Semantic Analysis: Analyze CDS semantics to propose test cases and ensure comprehensive coverage.
  • Code Generation: Generate complete ABAP test classes with structured data and test methods.
  • Use Case: When developing CDS views and entities, use this Skill to quickly create unit tests for validation and regression testing.

Quick Start

Use the generate-cds-unit-test skill to generate a test class for the CDS entity 'ZI_SALESORDER'.

Frequently Asked Questions about generate-cds-unit-test

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

FAQPage Schema
How do I generate ABAP Unit test classes for CDS entities?

To generate ABAP Unit test classes for CDS entities, this Skill performs semantic analysis on the CDS view and outputs complete test classes using the CDS Test Double Framework. It creates structured data and test methods to validate your CDS entities automatically.

What is the CDS Test Double Framework used for in ABAP unit testing?

The CDS Test Double Framework is used in ABAP unit testing to isolate CDS entities from underlying data sources. This Skill utilizes it to automatically generate test classes with structured data, proposing test cases based on semantic analysis for comprehensive regression testing.

Can I automatically propose test cases for CDS views based on semantic analysis?

Yes, you can automatically propose test cases for CDS views through semantic analysis. This Skill examines CDS semantics to identify potential test scenarios, then generates complete ABAP test classes containing the necessary structured data and test methods for validation.

Do I need access to the ABAP system to run CDS unit test generation?

Yes, you need access to the ABAP system and the specific CDS entity to run CDS unit test generation. This Skill requires retrieving relevant ABAP system data and accessing the CDS entity definition to perform semantic analysis and generate accurate test classes.

Does this tool require mcp-sap-docs to generate ABAP unit tests?

Yes, this tool requires the mcp-sap-docs dependency to generate ABAP unit tests. This dependency provides the necessary documentation access to accurately perform semantic analysis on CDS entities and generate complete test classes using the CDS Test Double Framework.

Why does automated CDS unit test generation help with ABAP development?

Automated CDS unit test generation helps ABAP development by reducing the manual time and effort required to create comprehensive test coverage. It quickly generates structured ABAP test classes for validation and regression testing, ensuring your CDS views remain robust during development.