# Integration Testing

> Creates and runs integration tests for component interactions. Use when testing multiple modules working together.

- Skill: `tomevault-io/integration-testing-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/integration-testing-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/integration-testing-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/integration-testing-2

---


# Integration Testing

Tests how multiple components work together.

## Instructions

When creating integration tests:

1. **Identify integration points**
   - API endpoints
   - Database interactions
   - Service communication
   - External dependencies

2. **Set up test environment**
   - Use test databases
   - Mock external services
   - Clean state between tests

3. **Write test scenarios**
   ```rust
   #[tokio::test]
   async fn test_user_registration_flow() {
       // Setup
       let app = spawn_app().await;
       
       // Act
       let response = app.post_register(json!({
           "email": "test@example.com",
           "password": "password123"
       })).await;
       
       // Assert
       assert!(response.status().is_success());
   }
   ```

## Best Practices

- Test realistic user scenarios
- Use actual databases when possible
- Clean up resources after tests
- Run in isolated environments

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/unizhu) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

