serverless-testing

Installation
SKILL.md

Serverless Testing

Business logic is small; the risk lives in configuration, permissions, events and integrations. Emulators never fully match the cloud, so test at more than one level.

Strategy

Level What Tooling
Unit Handler logic with the event as plain data; ports/adapters keep SDK calls behind interfaces Jest/pytest, aws-sdk-client-mock, moto
Local integration Function + emulated services LocalStack, SAM CLI (sam local invoke), Azure Functions Core Tools + Azurite, Firebase Emulator Suite
Cloud integration Deploy an ephemeral stack per PR, hit real services CDK/SAM/Serverless Framework/Terraform, unique stack name per branch, destroy afterwards
Contract Event and API schemas between producers and consumers JSON Schema, EventBridge schema registry, Pact (contract-testing)
E2E / synthetic Full flow via the public entry point production-monitoring-synthetic-testing
Installs
3
GitHub Stars
4
First Seen
Oct 24, 2026