testing-patterns
Installation
SKILL.md
Testing Couchbase Applications
Two testing strategies cover most needs:
- Unit tests — mock the Couchbase collection/cluster so tests run without a real cluster. Fast, no infrastructure. Use for business logic.
- Integration tests — run against a real cluster (Docker or testcontainers). Slower but catches real SDK and query behavior. Use for repository/DAO layers and SQL++ queries.
For language-specific mock examples, testcontainers setup, and test framework recommendations, see the language-specific skills: