agentsclimarketplace

Integration testing

Skill Amey-Thakur/AI-SKILLS/skills/testing/integration-testing

Test the seams between modules with real dependencies where they are cheap and containerized ones where they are not. Use when verifying that components wired together honor the contracts unit tests assume in isolation.From its SKILL.md

Install
npx -y skills add Amey-Thakur/AI-SKILLS --skill integration-testing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 23 days oldThe repository was created 23 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 4 stars4 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.

SKILL.md

2.6 KB, 534 tokens by cl100k_base, as published. Nobody here has run it

Integration testing

Unit tests prove each module works against its own assumptions. Integration tests prove those assumptions match reality at the seams: the ORM writes the column the code reads, the queue redelivers, the HTTP client parses the vendor's error shape. Mock those seams and the suite stays green while production fails at exactly the boundary nobody exercised. The craft is using real dependencies without making the suite slow or flaky.

Method

  1. Test one seam, not the whole app. Pick a single boundary per test: code to database, service to service, handler to queue. A test that stands up everything to check one repository method is an end-to-end test wearing the wrong label.
  2. Use the real thing when it is cheap. An in-process SQLite or an embedded HTTP server costs milliseconds and catches real serialization bugs. Reach for these before any container when the dependency has a lightweight real mode.
  3. Containerize the heavy, version-sensitive ones. For Postgres, Kafka, or Redis, where behavior shifts by version, run the real image with Testcontainers so the test matches production's engine rather than a stand-in that lies about locking or JSON handling.
  4. Give each test a clean slate. Run inside a transaction rolled back at teardown, or truncate and reseed per test. Shared mutable state across integration tests is the leading source of order-dependent failures.
  5. Fake only what you cannot run. Third-party payment and email APIs stay behind contract-tested fakes or recorded interactions such as WireMock or VCR. Everything you can stand up locally, stand up for real.
  6. Keep the suite in its own tier. Tag integration tests so unit stays sub-second on every save while integration runs on push or in CI. Blending the tiers trains people to skip the slow ones, and then all of them.

Litmus tests

  • Would this test have caught a migration that renamed a column the code still reads?
  • Does each test target one seam, so a failure names which boundary broke?
  • Can the suite run on a laptop with docker available and no shared staging database?

Boundaries

Integration tests cover component seams, not full user journeys or single functions: defer journeys to e2e-testing and isolated logic to unit-test-design. Where a team standardizes on a fixture or container harness, use it over the tools named here.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,851. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.