skills/mav-bp-integration-testing/SKILL.md
Integration testing conventions for applications. Covers test scope, external dependency management, environment setup, data isolation, and project testing guidance. Applied when writing or reviewing integration tests.
npx skillsauth add thermiteau/maverick-private mav-bp-integration-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Ensure integration tests verify that components work together correctly across real boundaries — APIs, databases, file systems, and third-party services.
| Strategy | When to use | Example | | -------- | ----------- | ------- | | Containerised real service | Database, cache, message broker | Testcontainers, Docker Compose | | Local server | Lightweight service your code controls | In-process HTTP server, embedded DB | | Sandbox / test account | Third-party API with sandbox mode | Stripe test mode, AWS LocalStack | | Contract test + stub | External API you cannot control | Pact, WireMock with recorded responses |
should persist order and publish event when checkout completesdescribe blocks: describe('POST /orders')tests/integration/, __tests__/integration/)Before applying these standards, load the project-specific testing implementation:
digraph lookup {
"docs/maverick/skills/integration-testing/SKILL.md exists?" [shape=diamond];
"Read and use alongside these standards" [shape=box];
"Invoke upskill" [shape=box];
"Read generated skill" [shape=box];
"docs/maverick/skills/integration-testing/SKILL.md exists?" -> "Read and use alongside these standards" [label="yes"];
"docs/maverick/skills/integration-testing/SKILL.md exists?" -> "Invoke upskill" [label="no"];
"Invoke upskill" -> "Read generated skill";
"Read generated skill" -> "Read and use alongside these standards";
}
docs/maverick/skills/integration-testing/SKILL.mdupskill skill with:
describe\(|it\(|test\(|expect\(|assert|@SpringBootTest|@IntegrationTest|TestContainers**/integration/**, **/e2e/**, **/*.integration.*, **/docker-compose*.test*| Pattern | Issue | Fix | | ------- | ----- | --- | | Test hits production service | Risk of side effects and flakiness | Use container, sandbox, or stub | | No cleanup after test | Data leaks between tests | Add teardown or use transaction rollback | | Sleep-based waits for dependencies | Flaky timing | Use health-check polling with timeout | | Test duplicates unit test coverage | Wasted execution time | Delete and rely on unit test | | Shared mutable test data across tests | Order-dependent failures | Each test creates its own data | | No timeout set | Hanging test blocks CI | Set explicit per-test timeout | | Hard-coded connection strings | Breaks in different environments | Use environment variables or config | | Test requires manual environment setup | Not reproducible | Automate with containers or scripts |
development
Use when a best-practice skill needs project-specific implementation details and no project skill exists at docs/maverick/skills/<topic>/SKILL.md. Scans the codebase and generates a project-specific skill file.
testing
Create or update technical documentation for a project. Covers architecture, service interactions, data flows, and design decisions. Produces professional markdown with Mermaid diagrams.
development
How to process code review feedback — verify before implementing, push back when wrong, clarify before acting on partial understanding. Applied when receiving review from the code-reviewer agent or human reviewers.
development
Analyze a project's codebase against Maverick standard practices and write a findings report. Checks linting, unit tests, integration tests, documentation, and CI/CD. Run when onboarding an existing project or on demand.