load-and-test

star 89

Rebuild CDS artifacts, reload SQLite fixture data, and run the full test suite. Use after schema or service changes.

SAP-samples By SAP-samples schedule Updated 4/22/2026

name: load-and-test description: Rebuild CDS artifacts, reload SQLite fixture data, and run the full test suite. Use after schema or service changes. disable-model-invocation: true

Run the following commands sequentially from the cap/ directory. Each step depends on the previous one succeeding.

Steps

  1. Build CDS artifacts and typed models

    cd cap && npm run build
    

    This runs cds build and regenerates @cds-models/ via @cap-js/cds-typer.

  2. Reload SQLite fixture data

    cd cap && npm run load_sqlite
    

    Runs convertData.js with the SQLite profile to populate db.sqlite.

  3. Run full test suite

    cd cap && npm test
    

    Runs model + handler tests with a 60-second timeout.

Rules

  • Stop on failure. If any step fails, report the error immediately. Do not continue to the next step.
  • Report results. After all steps pass, summarize: build status, data load count, and test results (pass/fail/skip counts).
Install via CLI
npx skills add https://github.com/SAP-samples/cloud-cap-hana-swapi --skill load-and-test
Repository Details
star Stars 89
call_split Forks 48
navigation Branch main
article Path SKILL.md
More from Creator