integration-testing
Skill4 starsChanged 4 months agoMITView on GitHub
Tests that components work together — service against real database, API against real dependencies, module against module. Use this whenever the user mentions integration tests, testing against a real database or queue, contract testing between services, or has unit tests passing while the system is still broken. For testing one unit in isolation, use unit-testing; for driving a real browser, use browser-testing.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- paruff/uFawkesAItheir own version, first seen Oct 3, 2026
- sipandey/create-agent-roomtheir own version, first seen Sep 26, 2026
- s-morgan-jeffries/apple-mail-fast-mcptheir own version, first seen Sep 7, 2026
- elastic/integration-skillstheir own version, first seen Aug 24, 2026
- tuanductran/tester-skillstheir own version, first seen Aug 1, 2026
- lubochka/xiigen-general-skillstheir own version, first seen Jun 18, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- s-morgan-jeffries/apple-mail-fast-mcp★ 104same name
- DevelopersGlobal/ai-agent-skills★ 69same name
- DauQuangThanh/hanoi-rainbow★ 17same name
- elastic/integration-skills★ 16same name
- paruff/uFawkesAI★ 2same name
- caseyng/Claude-skills★ 1same name
- lubochka/xiigen-general-skills★ 1same name
- sipandey/create-agent-room★ 0same name
- tuanductran/tester-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-deploymentSkill
- agent-designSkill
- agent-evaluationSkill
- agent-hardeningSkill
- agent-implementationSkill
- agent-observabilitySkill
- agent-scopingSkill
- api-designSkill
- code-templatingSkill
- dependency-upgradeSkill
- error-handlingSkill
- feature-implementationSkill
- project-scaffoldingSkill
- refactoringSkill
- data-analysisSkill
- data-migrationSkill
- data-modelingSkill
- sql-queriesSkill
- ci-pipelinesSkill
- containerizationSkill
- deployment-strategiesSkill
- infrastructure-as-codeSkill
- debuggingSkill
- issue-investigationSkill
- issue-triageSkill
- log-analysisSkill
- network-troubleshootingSkill
- performance-profilingSkill
- api-documentationSkill
- commit-messagesSkill
- diagrammingSkill
- markdown-docsSkill
- plain-languageSkill
- pr-descriptionsSkill
- release-notesSkill
- browser-testingSkill
- load-testingSkill
- test-dataSkill
- test-driven-developmentSkill
- unit-testingSkill
- deep-researchSkill
- feed-digestSkill
- summarizationSkill
- accessibility-reviewSkill
- code-analysisSkill
- code-lintingSkill
- code-reviewSkill
- auth-designSkill
- dependency-auditSkill
- secrets-managementSkill
- security-analysisSkill
- threat-modelingSkill
- capacity-planningSkill
- disaster-recoverySkill
- incident-responseSkill
- monitoring-setupSkill
- root-cause-analysisSkill
- runbooksSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
5
Distinctive
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 18
Test the boundaries where you cross into something you do not control:
- Distinctive: line 27
Do not integration-test pure logic.
- Distinctive: line 46
Done when: no test in this suite mocks the thing it is testing against.
- Distinctive: line 52
Create what the test needs inside the test: Not a shared seed fixture everyone mutates.
- Distinctive: line 63
Do not re-test business logic here.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Integration testing
Unit tests prove each piece works against your assumptions about its neighbours. Integration tests prove the assumptions were right. Almost every "all tests pass but production is broken" story lives in that gap — a mock that returns a shape the real service never returns.
These cost more than unit tests and less than end-to-end. Spend them on the seams where your assumptions about someone else's behaviour are most likely wrong.
1. Pick the seams worth the cost
Test the boundaries where you cross into something you do not control:
- Your code against a real database: queries, migrations, transactions, constraints. The highest-value integration tests in most applications, because SQL and ORM behaviour is where mocks lie most.
- Your service against its dependencies: real HTTP, real serialization.
- Message producers against consumers: that the payload one writes is one the other parses.
- Your code against the filesystem, clock, or queue, where behaviour is subtle.
Do not integration-test pure logic. If it has no boundary, it belongs in a unit test.
Done when: each planned test crosses a boundary you do not own.
2. Use the real thing, not a mock
The entire point is exercising real behaviour. A mocked database tests your mock.
- Containers for infrastructure: a real Postgres, Redis, or Kafka in a container. Testcontainers-style libraries make this a few lines and it is worth it.
- The same version as production. Testing on a different major version tests a different system.
- Real HTTP against a local instance where you can run the dependency; a recorded or contract-verified stub where you cannot.
For third-party services you cannot run: record real responses once, replay them, and re-record on a schedule. A hand-written stub drifts from reality silently and gives false confidence indefinitely.
Done when: no test in this suite mocks the thing it is testing against.
3. Make each test own its data
Shared state is the main source of flakiness and order-dependence here.
- Create what the test needs inside the test. Not a shared seed fixture everyone mutates.
- Isolate: a transaction rolled back at the end, a fresh schema, or a unique namespace per test. Transaction rollback is fastest where it fits; it does not fit when the code under test manages its own transactions.
- Unique values so parallel runs cannot collide.
- Never depend on execution order, and run the suite shuffled occasionally to prove it.
Done when: any single test passes alone, and the suite passes in parallel and shuffled.
4. Test what only integration can reveal
Do not re-test business logic here. Target the things unit tests structurally cannot see:
- Query correctness against real SQL, including the ORM generating something you did not expect
- Transaction and rollback behaviour, and what happens on a constraint violation
- Migrations: that they apply, and that they apply to a database with existing data
- Serialization round-trips: the shape going out matches the shape coming back
- Connection handling: pool exhaustion, timeouts, reconnection
- Concurrency: two writers, a race on a unique constraint
Done when: each test would still pass if the business logic changed, and fail if the integration broke.
5. Keep them fast enough to run
Integration suites decay because they get slow, and a suite nobody runs provides nothing.
- Start containers once per suite, not per test
- Run in parallel with isolation from step 3
- Separate them from unit tests so the fast suite stays fast — unit tests on save, integration on commit or in CI
- Cap the count. Coverage of the seams, not of every behaviour through the seams
Done when: the suite runs in a time people will actually wait for.
Report
State which boundaries are covered and which are not, what runs against a real dependency versus a recording, and how long the suite takes. The uncovered boundaries are the useful part — that is where the next production surprise will come from.
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.

