integration-tests

integration-tests is a command for Claude Code from oxygen-fragment/claude-modular. It costs 0 tokens per session (600 once invoked), scanned A, original, MIT.

A command that creates integration tests, which check whether parts of a system work together, including APIs, databases, external services, and messages between services.

In plain words
What is it for?
Use it to test endpoints, authentication, database operations, migrations, service communication, event handling, complete workflows, and error recovery.
Why use it?
It exposes problems that tests of individual functions may miss when real components interact.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/oxygen-fragment/claude-modular/integration-tests
Clone the repo
git clone --depth 1 https://github.com/oxygen-fragment/claude-modular

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for integration-tests

README.md
[![agentmods](https://agentmods.dev/badge/commands/oxygen-fragment/claude-modular/integration-tests.svg)](https://agentmods.dev/commands/oxygen-fragment/claude-modular/integration-tests)
Your own site
<a href="https://agentmods.dev/commands/oxygen-fragment/claude-modular/integration-tests"><img src="https://agentmods.dev/badge/commands/oxygen-fragment/claude-modular/integration-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 600 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00600
Opus 5 $0.00000 $0.00300
Sonnet 5 $0.00000 $0.00120
Haiku 4.5 $0.00000 $0.00060

Measured 5d ago against content hash 497df60c6127, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

integration-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/testing/integration-tests.md · 98 lines

What it actually says

Integration Tests Command

2. **Test Environment Setup**
   - Configure test databases and services
   - Set up service mocks and stubs
   - Create test data fixtures
   - Initialize test infrastructure

3. **API Integration Tests**
   - Test HTTP endpoints with various inputs
   - Validate request/response schemas
   - Test authentication and authorization
   - Verify error handling and status codes

4. **Database Integration Tests**
   - Test CRUD operations
   - Validate data consistency
   - Test transaction handling
   - Verify migration scripts

5. **Service Integration Tests**
   - Test inter-service communication
   - Validate message queue operations
   - Test event handling and processing
   - Verify distributed transaction behavior

6. **End-to-End Workflow Tests**
   - Test complete user journeys
   - Validate business process flows
   - Test error recovery scenarios
   - Verify performance under load
# Created test suites:
# - API endpoint tests
# - Database interaction tests
# - External service integration
# - Error handling scenarios
```

```bash
# Focus on specific integration type
/test:integration-tests --type=api

# API-focused testing:
# - REST endpoint validation
# - GraphQL query testing
# - Authentication flows
# - Rate limiting verification
```

```bash
# Test specific service integration
/test:integration-tests --service=payment-gateway

# Service-specific testing:
# - Payment processing flows
# - Error handling scenarios
# - Webhook verification
# - Transaction validation
```
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 98 lines · 0 tokens per session scan A 497df60c6127

Subscribe to this mod's changes

integration-tests is a command published in the GitHub repository oxygen-fragment/claude-modular (283 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 600 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.