BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

Testing your CAP HANA Artifacts with jest – including multitenancy, hdbprocedure and hdbview

cds.test covers the service; this covers what is underneath it, where the artifact is an hdbprocedure or an hdbview that CDS never sees. That means a real HDI container, so most of the post is about where to get one and how to give CAP access to it — the tests are the easy part once that is true.

Where it sits

Explains
TestingCAPTestingcapabilityProving the service still does what it did — against the model and the handlers, without a deployed system and without a database somebody has to keep clean.MultitenancyCAPMultitenancycapabilityServing many tenants from one deployment — onboarding, tenant-isolated data, per-tenant schema deployment and the operational tooling around it. It is decided once, before anything is built, and narrows the artifacts in almost every capability downstream: most sharply in [caching](capability:caching) and anything else holding state in process.Database connectorsCAPBTPDatabase connectorscapabilityConnecting an application’s data model and queries to a database, including the differences in supported queries, types and schema management between database implementations. Changing an existing schema belongs to [schema evolution](capability:schema-evolution).
Since then
Testing has changed 3 times since this was published, most recently in @cap-js/cds-test 1.0.0, 2026-04-23
Source
reachable

Who is behind it

Tristanauthor

Before you read it

read from the page
ApplicabilityCore changedTesting has changed 3 times since this was published, most recently in @cap-js/cds-test 1.0.0, 2026-04-23.

This is a derived prompt to re-check the work, not a claim that the work is wrong. Exact stale statements are recorded separately after editorial review.

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
4,911

What was found on the page

derived
Prose
derived
1,678 words
Numbered steps
derived
7
Code blocks
derived
12
Repository links
derived
3

For testing

on the edge
Applies in
authored
cap

For multitenancy

on the edge
Applies in
authored
cap

For database-connectors

on the edge
Applies in
authored
btpcap

More on this81

Group by81 of 81 pieces
Piece, what it offersStill applies
Also explainingTesting81
Bridging Python and SAP HANA: Inside the sqlalchemy-hana Open-Source Dialect
YouTube — SAP Developers playlists, SAP Developers
nothing recorded
CAP Foundry: Engineering SAP CAP Applications from Business Intent with Guardrailed AI
SAP Community, Shahid
nothing recorded
Connect SAP CAP (Node.js) to On-Premise/Private PostgreSQL using SAP Cloud Connector
SAP Community, KalaikovanThe reasoningA recipe
Core changed
How to Restrict CRUD Operations in SAP CAPM Using @Capabilities, @readonly and Test APIs with .http
SAP Community, DeepaRaghoThe reasoningA recipeRunnable code
nothing recorded
From Concept to action: Hands-On with the CAP Operator and the Partner Reference Application
SAP Community, ChristianWeissThe reasoningA recipeRunnable code
nothing recorded
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-4]
SAP Community, sanjucsThe reasoningA recipe
Core changed
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-3]
SAP Community, sanjucsThe reasoning
nothing recorded
Building a SaaS Multitenant Application Using SAP CAP Framework — Without a Database
SAP Community, DebashishDasThe reasoningA recipeRunnable code
nothing recorded
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-1]
SAP Community, sanjucsThe reasoningA recipeRunnable code
Core changed
Building a CAP App with Fiori Integration – Part 1: Environment & HANA Cloud Setup
SAP Community, SuryaRamesh, part 1 of 2The reasoning
nothing recorded
SAP CAP on HANA XSA: Scaling Industrial Data Applications Beyond the Cloud
SAP Community, rgadirovThe reasoningRunnable code
Core changed
Part 2: Creating and Deploying a CAP Application with PostgreSQL, Hyperscaler Option
SAP Community, yashbhosle789, part 2 of 2The reasoningA recipe
Core changed
Part 1: Creating and Deploying a SAP CAP Application with SAP HANA on SAP BTP (Cloud Foundry)
SAP Community, yashbhosle789, part 1 of 2The reasoningA recipe
Core changed
Part 2: Runtime Architecture & Cost efficiency gains
SAP Community, ChristianWeiss, part 2 of 3The reasoning
nothing recorded
Kyma Evolution: Transforming SAP Kyma into a tailor-made SaaS Platform for sbs extensions
SAP Community, ChristianWeiss, part 1 of 3The reasoning
nothing recorded
Setting Up PostgreSQL for SAP BTP Development: A Practical Guide
SAP Community, michal_majerThe reasoningA recipeRunnable code
nothing recorded
Create a CAP Application with SAP HANA Cloud from Scratch and Deploy to Cloud Foundry
SAP Community, MaheshSirsat1708The reasoningA recipe
Core changed
Creating a Hybrid CAP (Node.js) Profile with PostgreSQL on BTP from Business Application Studio
SAP Community, valentincadartThe reasoningRunnable code
Core changed
Enhancing Unit Testing in SAP CAP Java Applications with GitHub Copilot
SAP Community, Anjali_PathakThe reasoning
nothing recorded
Getting Started with Unit Testing in SAP CAP Java Applications
SAP Community, Anjali_PathakThe reasoningRunnable code
Core changed
Lets Talk to the Database - CAP & SQLite Powered by Google Gemini-2.5-Pro
SAP Community, ShivamShuklaSAPThe reasoning
nothing recorded
SAP CAP With Prostgres Serice in BTP
SAP Community, satya-dev
nothing recorded
CAP multitenancy with Work Zone
SAP Community, Wouter Lemaire
nothing recorded
Using HANA Cloud’s "VECTOR_EMBEDDING" Function in CAP
SAP Community, Mio YasutakeThe reasoningRunnable code
nothing recorded
Multitenant SaaS Application using CAP
SAP Architecture Center, SAP Architecture CenterThe reasoningA reference
nothing recorded
SAP CAP Lessons Learned: SQLite is single threaded, HANA is not
SAP Community, LucasMagriniRigo
nothing recorded
Developing CAP java/node.js mixed mono Multitenant SaaS Applications with Shared Database
SAP Community, xuelongA recipeRunnable code
New majors
SAP CAP Lessons Learned: Run a CAP app using SQLite on SAP BTP - Cloud Foundry
SAP Community, LucasMagriniRigoThe reasoning
nothing recorded
Event-Driven Multi-Tenant Architecture on SAP BTP with CAP and SAP Event Mesh
SAP Community, ale_biagiThe reasoning
nothing recorded
Configure an SAP CAP Application to Connect to an SAP HANA Cloud Database in Another Global Account or Subaccount
SAP Community, JhoelAnthonyRamosRomeroPEThe reasoning
nothing recorded
SQLite as database for a multi-target (/productive) CAP Application
SAP Community, Christopher_KetzlerThe reasoningA recipeRunnable code
Core changed
Using Postgresql Database in Cloud Application Programming model
SAP Community, Arun KrishnamoorthyThe reasoningA recipeRunnable code
Core changed
Sharing SAP HANA Cloud instance to multiple subaccounts and creating HDI containers
SAP Community, Kazuhiko TakataThe reasoningRunnable code
Core changed
2024/01最新版!Productivity Toolsを使ったCAPバックエンド開発②~HANA Cloud編~
SAP Community, takayuki_tanakaA recipe
Core changed
CAP PostgreSql setup local debugging using Docker - Part 2
SAP Community, ramonlee5A recipe
Core changed
CAP full-stack testing with BDD flavour
SAP Community, Vladislav Leonkev
nothing recorded
CAP with PostgreSQL DB alternate to HANA Cloud DB - Part 1
SAP Community, ramonlee5The reasoning
nothing recorded
Exposing Calculation View with Dynamic Client via OData API
SAP Community, Willem PardaensThe reasoningA recipeRunnable code
nothing recorded
Open Sourcing CAP – how to learn more or get involved
SAP Community, Fempel
nothing recorded
Multitenant SaaS applications on SAP BTP using CAP - The Reloaded Version!
SAP Community, martinfrickThe reasoningRunnable code
nothing recorded
Hybrid testing using PostgreSQL on SAP BTP, hyperscaler option
SAP Community, martinfrick
nothing recorded
SAP CAP (Java) with Amazon Aurora PostgreSQL
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Core changed
SAP CAP (Java) with Azure Cosmos DB for PostgreSQL
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Core changed
Run and Deploy SAP CAP (Java) with PostgreSQL using Official Database Adapter @cap-js/postgres
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Version drift
Lets Deep dive into CAPM and HANA Cloud --> HANACap
SAP Community, shivamshukla12The reasoningRunnable code
Core changed
Run and Deploy SAP CAP (Node.js or Java) with PostgreSQL on SAP BTP Cloud Foundry
SAP Community, TiaXuThe reasoningA recipeRunnable code
Core changed
SaaS Self-Onboarding and One-Domain Concept in SAP BTP, Kyma Runtime using CAP
SAP Community, martinfrickThe reasoningRunnable code
Core changed
Multitenant SaaS applications on SAP BTP using CAP? SAP BTP, Kyma Runtime!
SAP Community, martinfrickThe reasoning
nothing recorded
Run and Deploy SAP CAP (Java) with PostgreSQL on SAP BTP Cloud Foundry
SAP Community, shanthakumar_krishnaswamyThe reasoningRunnable code
1 stale part
[BTP HANA Cloud Database] : How to access HANA Cloud Database & HDI Container in BTP
SAP Community, showkath_naseemThe reasoningA recipeRunnable code
nothing recorded
SFSFとHANA Cloudを使用するCAPのアプリケーション開発
SAP Community, rasaiA recipeRunnable code
Core changed
How to create an API to run a HANA Cloud Stored Procedure in Cloud Foundry
SAP Community, gonzalo_hernan_sendraThe reasoningRunnable code
Core changed
Multitenant SaaS apps on SAP BTP using CAP? Tried-and-True! – The Expert Features
SAP Community, martinfrickThe reasoning
nothing recorded
Multitenant SaaS apps on SAP BTP using CAP? Tried-and-True! – The Advanced Version
SAP Community, Alper DedeogluThe reasoning
nothing recorded
Upload data from excel in CAP (Node.js)
SAP Community, KM11Runnable code
Core changed
Distributed Resiliency of SAP CAP applications using SAP HANA Cloud (Multi-Zone Replication)
SAP Community, shanthakumar_krishnaswamyThe reasoning
nothing recorded
Multitenant SaaS apps on SAP BTP using CAP? Tried-and-True! – The Basic Version
SAP Community, Alper DedeogluThe reasoning
nothing recorded
Multitenant SaaS applications on SAP BTP using CAP? Tried-and-True!
SAP Community, martinfrickThe reasoning
nothing recorded
Useful CAP CDS and Fiori Commands to Accelerate Development and Deployment
SAP Community, TiaXu
nothing recorded
How I migrated my on-prem xsa cds3+hana solution to cds6+sqlite
SAP Community, alex_myakinkiiThe reasoningRunnable code
Core changed
Extend SAP SuccessFactors on SAP BTP with CAP - Deploy to SAP HANA Cloud
SAP Community, ale_biagiThe reasoning
nothing recorded
Create a Business Service using CDS, Node.js, SQLite and a OData service
SAP Community, raybantonThe reasoningA recipeRunnable code
Core changed
Multitenant Business Applications with CAP | Hands-on Video Tutorials
SAP Community, dvankempenThe reasoning
nothing recorded
Deploying CAP services with the in-memory SQLite database
SAP Community, liam_mischewskiThe reasoning
nothing recorded
Multitenant application using Cloud Application Programming Model (CAP)
SAP Community, former_member733211The reasoningA recipeRunnable code
Core changed
cds deploy to sqlite in-memory database
SAP Community, AndrewBarnard
nothing recorded
Simple steps to deploy your CAP project to HANA cloud
SAP Community, OmPrakashJhaThe reasoning
nothing recorded
SAP BTP Showcase - Use SAP Cloud Application Programming to do Native Development on HANA Cloud
SAP Community, former_member271284The reasoningA recipeRunnable code
Core changed
SAP BTP Showcase – SAP Continuous Integration and Delivery (SAP CI&D) for SAP HANA Cloud
SAP Community, gcalixtosThe reasoningRunnable code
Core changed
SAP Business Application Studio – Using SAP HANA Tools with SAP Cloud Application Programming Model projects
SAP Community, Former MemberThe reasoningA recipeRunnable code
Core changed
My Learnings in SAP-CAP Using MongoDB
SAP Community, krish469The reasoningRunnable code
Gone quiet
SAP Cloud Application Programming Model(CAP):概要およびデモ - Part 1
SAP Community, rasai, part 1 of 2
nothing recorded
First Java Cap Application
SAP Community, bruce_wang3
nothing recorded
Run and Deploy CAP with PostgreSQL on SAP BTP Cloud Foundry (Node.js)
SAP Community, Mike ZaschkaThe reasoningRunnable code
1 stale part
Getting started with CAP on PostgreSQL (Node.js)
SAP Community, Mike ZaschkaThe reasoningRunnable code
1 stale part
Getting your head into Cloud Application Programming model multitenancy
SAP Community, andrew_lundeThe reasoningRunnable code
Core changed
PostgreSQL persistence adapter for CAP (Node.js)
SAP Community, Volker BuzekThe reasoningRunnable code
Superseded
CAP: Unit Testing using Mocha and Chai
SAP Community, jhodel18The reasoningRunnable code
Core changed
Integration Tests in a Cloud Foundry Java App using SAP Cloud Application Programming Model
SAP Community, former_member428487The reasoningRunnable code
Core changed
Create Automated System Tests for SAP Cloud Application Programming Model Projects
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Use SAP HANA as the Database for a CAP Java Application
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded

Details

Graph5 edges
POINTS OUT →
explainsTestingcapability, core and community
explainsMultitenancycapability, core and community
explainsDatabase connectorscapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History2
  • explains → applies_to on capability:testing (cap); capability:multitenancy (cap); capability:database-connectors (cap, btp)Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md).
  • Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
Ref
content:testing-cap-hana-artifacts-with-jest
JSON
/content/testing-cap-hana-artifacts-with-jest.json
MCP
Connecting an agent