load-and-test

Rebuild CDS artifacts, reload SQLite fixtures, and run the full test suite.

89|47|Updated Dec 1, 2020
One-click install
npx skills add https://github.com/SAP-samples/cloud-cap-hana-swapi --skill load-and-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: load-and-test
Source: https://github.com/SAP-samples/cloud-cap-hana-swapi/tree/main/.claude/skills/load-and-test
Command: npx skills add https://github.com/SAP-samples/cloud-cap-hana-swapi --skill load-and-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rebuild CDS artifacts, reload SQLite fixture data, and run the full test suite after schema or service changes, ensuring a clean, validated development environment.

Core Features & Use Cases

  • Rebuild CDS artifacts and typed models to reflect code changes.
  • Reload SQLite fixture data to reset test data quickly.
  • Run the full test suite to verify integration and model behavior after changes.

Quick Start

From the cap/ directory, run the three steps in order: build artifacts, reload fixtures, and execute the full test suite.

Frequently Asked Questions about load-and-test

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

FAQPage Schema
How do I rebuild CDS artifacts and reload SQLite fixtures before running tests in CAP?

To rebuild CDS artifacts and reload SQLite fixtures in CAP, run the build, load_sqlite, and test steps sequentially from the cap directory. This workflow ensures a clean, validated development environment after schema or service changes.

What is the best way to validate CAP models and handlers after making schema changes?

The best way to validate CAP models and handlers after schema changes is to execute a sequential workflow that rebuilds CDS artifacts, reloads SQLite fixture data, and runs the full test suite to verify integration and model behavior.

Does the CAP test workflow support failure early reporting during the build and test cycle?

Yes, the CAP test workflow supports failure early reporting by executing the build, load_sqlite, and test steps sequentially. If any step fails, the process stops to ensure a deterministic development cycle.

When do I need to reload SQLite fixture data in a CAP development cycle?

You need to reload SQLite fixture data in a CAP development cycle after schema or service changes to reset test data quickly. This ensures deterministic test execution and validates models, handlers, and integrations across the project.

Can I run the full test suite without rebuilding CDS artifacts first?

Running the full test suite without rebuilding CDS artifacts is not recommended after schema changes. Rebuilding artifacts and reloading SQLite fixtures sequentially ensures a clean environment and accurate validation of model behavior and integrations.