010119 integration test setup
Skill natuleadan/skills/skills/010119-integration-test-setup
Multi-domain agent skills collection for AI coding agents (Claude, Cursor, Copilot, OpenCode, and more). Covers programming, biology, cooking, and future domains. Installable via npx skills add.
npx -y skills add natuleadan/skills --skill 010119-integration-test-setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Backend API test patterns — describeIf guards, getAuthHeaders, test-% cleanup, req() helper, KV isolation, sub-resource tests, and permissions matrix.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.2 KB, as published. Nobody here has run it
Integration Test Setup
When to use
When writing HTTP integration tests against a live backend server with PostgreSQL, Redis, and S3 services.
References
| Topic | File |
|---|---|
| Test setup and auth helpers | references/test-setup.md |
| Data cleanup patterns | references/data-cleanup.md |
| Sub-resource test pattern | references/sub-resource-tests.md |
| Permissions matrix test | references/permissions-matrix.md |
Quick checklist
- Guard tests with
describeIf(!IS_PROD, ...)to skip in production - Use
getAuthHeaders(role)to create users and get session cookies - Clean up test data with
WHERE name LIKE 'test-%'patterns - Never use
FLUSHALLon Redis — use targeted key deletion - Test auth: 401 without auth, 403 without permission, 200 with permission
- For sub-resources: test CRUD + auth in the same describe block
- Clean up sub-resource tables with
WHERE productId IN (SELECT id FROM prd_products WHERE name LIKE 'test-%')