go-integration-testing
Skill0 starsChanged 2 months agoMITView on GitHub
Write or review Go tests of mounted HTTP/RPC paths, database mechanisms, migrations, and real infrastructure.
In this repository15 other files it gives its agents.
- go-buildSkill
- go-concurrencySkill
- go-dataSkill
- go-debuggingSkill
- go-designSkill
- go-grpcSkill
- go-httpSkill
- go-idiomaticSkill
- go-implementSkill
- go-integrationsSkill
- go-observabilitySkill
- go-performanceSkill
- go-securitySkill
- go-serviceSkill
- go-testingSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Keep the mechanism real and replace only collaborators beyond it.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Go Integration Testing
Prove the mechanism. Identify what makes the promised behavior true, then choose the smallest test boundary that includes it and a scenario that exposes its failure. Honor requirements and preserve settled choices outside the requested change.
Preserve the Go baseline, drivers, transport, and test setup. Reuse existing harnesses. Use established Testcontainers modules when an infrastructure claim needs them; a container is an environment, not the assertion. For database cases, match the target engine and relevant configuration, apply real migrations, establish readiness, and isolate data.
Exercise the actual router, middleware, or interceptor when its behavior matters. A recorder with the mounted HTTP handler chain can cover routing, middleware, and response contracts; invoking only a leaf handler omits that composition. Reuse an in-process RPC client/server harness for RPC semantics. Use real network transport for connection, TLS, socket deadlines, backpressure, or disconnect claims. Do not require network or database setup for unrelated in-process contracts.
Keep the mechanism real and replace only collaborators beyond it. A fabricated principal tests downstream authorization, not credential verification. Preserve contract distinctions in observed responses and effects; decoding, normalization, or helpers must not conceal violations.
For transaction, constraint, locking, or isolation claims, use the target engine and real transactions. Use independent connections for arbitration and visibility, and fresh reads for committed effects. Test-side rollback cannot undo independent application commits.
Coordinate competing work, bound waits, and surface worker errors. Own cleanup for resources and committed fixtures, including partial setup failure; finish workers before removing resources.
Run the intended tests with their configuration and confirm execution. Reuse applicable evidence for the same revision/environment, while respecting required checks. Report skips and unavailable infrastructure without substituting weaker proof or inventing a new harness as an unsolicited completion gate. Local integration success does not certify a deployed provider. For review-only work, report which mechanism the tests do or do not establish without editing files or creating infrastructure.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

