Skip to content
Back to skills

Skill: Integration Testing (Cross-Cutting)

ASecurity

This skill is used to create integration tests that verify how different components work together. Integration tests check interactions between modules, services, databases, and external APIs.

  • 26 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 7, 2026
developmentjavascriptpythongojavaphptestingapidatabaseperformancedocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add PolyXGO/HeraSpec --skill integration-test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill: Integration Testing (Cross-Cutting)?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill: Integration Testing (Cross-Cutting)
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/polyxgo-skill-integration-testing-cross-cutting/badge)](https://www.skillsdirectory.com/skills/polyxgo-skill-integration-testing-cross-cutting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Skill: Integration Testing (Cross-Cutting)

## Purpose

This skill is used to create integration tests that verify how different components work together. Integration tests check interactions between modules, services, databases, and external APIs.

## When to Use

- When testing component interactions
- When testing API endpoints
- When testing database operations
- When testing service integrations
- When verifying data flow between components
- When testing with real dependencies (not mocks)

## Step-by-Step Process

### Step 1: Identify Integration Points
- Map component dependencies
- Identify external services and APIs
- List database operations
- Determine integration boundaries
- Identify critical integration paths

### Step 2: Set Up Test Environment
- Configure test database
- Set up test services/mocks for external APIs
- Configure test environment variables
- Prepare test data fixtures
- Set up cleanup procedures

### Step 3: Write Integration Tests
- Create test files for integration scenarios
- Test component interactions
- Test API endpoints with real requests
- Test database operations
- Test error handling across components
- Use test fixtures for consistent data

### Step 4: Run and Verify
- Run integration tests
- Verify test isolation (tests don't affect each other)
- Check test execution time
- Ensure proper cleanup after tests
- Verify tests pass consistently

### Step 5: Maintain Tests
- Update tests when interfaces change
- Keep test data synchronized
- Document test scenarios
- Monitor test execution time

## Required Input

- **Components**: List of components to integrate
- **APIs**: API endpoints to test
- **Database schema**: Database structure for testing
- **External services**: External services to mock or use
- **Test data**: Sample data for testing

## Expected Output

- Integration test files
- Test scenarios covering integration paths
- Test fixtures and setup code
- Passing integration test suite
- Documentation of integration test scenarios

## Tone & Rules

### Test Scope
- Test real interactions between components
- Use real databases (test database)
- Mock external services that can't be controlled
- Test error propagation across boundaries

### Test Data
- Use consistent test fixtures
- Clean up test data after tests
- Use transactions for database tests when possible
- Isolate tests to prevent interference

### Performance
- Integration tests are slower than unit tests
- Run integration tests separately from unit tests
- Use test database (not production)
- Consider test execution time

### Limitations
- ❌ DO NOT use production database
- ❌ DO NOT test with real external APIs in CI (use mocks)
- ❌ DO NOT write tests that depend on test execution order
- ❌ DO NOT skip cleanup (tests must be isolated)
- ❌ DO NOT test implementation details

## Available Templates

- `templates/integration-test-template.js` - JavaScript integration test template
- `templates/integration-test-template.php` - PHP integration test template
- `templates/integration-test-template.py` - Python integration test template

## Available Scripts

- `scripts/setup-test-db.sh` - Set up test database
- `scripts/seed-test-data.sh` - Seed test data

## Examples

See `examples/` directory for reference:
- `good-integration-test/` - Well-structured integration tests
- `bad-integration-test/` - Examples to avoid

## Links to Other Skills

- **unit-test**: Use unit tests before integration tests
- **e2e-test**: Use for end-to-end user scenarios
- **documents**: Use to document integration test strategy

Files in this skill

  • CHANGELOG.md3 KB
  • README-template.md1.4 KB
  • README.md1.8 KB
  • content-optimization-skill.md3 KB
  • data/charts.csv7.5 KB
  • data/colors.csv12.7 KB
  • data/landing.csv14.1 KB
  • data/pages-proposed.csv11.1 KB
  • data/pages.csv5 KB
  • data/products.csv29.1 KB
  • data/prompts.csv17 KB
  • data/stacks/flutter.csv10.2 KB
  • data/stacks/html-tailwind.csv11.1 KB
  • data/stacks/nextjs.csv12.3 KB
  • data/stacks/react-native.csv9.8 KB
  • data/stacks/react.csv12.7 KB
  • data/stacks/svelte.csv10.8 KB
  • data/stacks/swiftui.csv10.6 KB
  • data/stacks/vue.csv10.8 KB
  • data/styles.csv41 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.