agentleFS
tuanductrantuanductran/tester-skills/skills/integration-testing/SKILL.md

integration-testing

Skill0 starsChanged 4 months agoMITView on GitHub

Integration testing guidelines for JS/TS services that talk to real databases, queues, or external systems. Use this skill whenever writing or reviewing tests that spin up a database/container, testing a repository or data-access layer, deciding whether something should be a unit or integration test, or managing test database state. Triggers on requests like "write an integration test", "test this repository against a real database", "set up testcontainers", or "how should I structure this test".

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use api-design, test-driven-development and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 3 projects that use this

  • OpenAISkill

    test-driven-development

    Use when implementing any feature or bugfix, before writing implementation code

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read rules/_sections.md for full category descriptions.

    line 54
  2. Very specific:

    Before writing a new test, check scope-integration-vs-unit-boundary to confirm it actually needs a real dependency.

    line 55
  3. Very specific:

    Default to Testcontainers (env-testcontainers-real-deps) plus transactional rollback (db-transactional-rollback) for anything touching a …

    line 56

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Integration Testing

Guidelines for testing the seams between your code and real infrastructure — databases, queues, external services — without making the suite slow or flaky. Contains 6 rules across 4 categories.

When to Apply

Reference these guidelines when:

  • Deciding whether a test belongs at the unit or integration level
  • Writing a test that needs a real database, cache, or message queue
  • Managing database state and cleanup between tests
  • Building reusable fixtures/factories for integration-level test data

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Test Boundary & ScopeHIGHscope-
2Environment & Real DependenciesHIGHenv-
3Database StateHIGHdb-
4Fixtures & Test DataMEDIUMfixtures-

Quick Reference

1. Test Boundary & Scope (HIGH)

  • scope-integration-vs-unit-boundary - Reserve integration tests for system boundaries

2. Environment & Real Dependencies (HIGH)

  • env-testcontainers-real-deps - Use Testcontainers instead of in-memory fakes
  • env-avoid-shared-state - Isolated environment per suite

3. Database State (HIGH)

  • db-transactional-rollback - Wrap each test in a transaction + rollback
  • db-seed-minimal-fixtures - Seed only what each test needs

4. Fixtures & Test Data (MEDIUM)

  • fixtures-factory-functions - Build test data with factory functions

How to Use This Skill

  1. Read rules/_sections.md for full category descriptions.
  2. Before writing a new test, check scope-integration-vs-unit-boundary to confirm it actually needs a real dependency.
  3. Default to Testcontainers (env-testcontainers-real-deps) plus transactional rollback (db-transactional-rollback) for anything touching a database.

See rules/_template.md for the format used by every rule file.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.