Agent skill
testing-data
Build integration tests for data access in the widget host app. Use when setting up test databases, running EF Core migrations for tests, or validating repository behavior end-to-end.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/testing/testing-data-yosrbennagra-3sc
SKILL.md
Testing Data
Overview
Validate data access behavior with integration tests against a real or ephemeral database.
Core areas
- Test database orchestration
- Migrations and schema setup
- Repository integration tests
Definition of done (DoD)
- Each test gets isolated DB instance (in-memory or temp file)
- Migrations applied automatically before tests run
- Test data seeded via explicit setup, not global fixtures
- No test depends on another test's data
- Tests clean up connections/resources in Dispose
- Repository tests cover CRUD + edge cases (not found, duplicates)
Workflow
- Provision a test database per test run.
- Apply migrations before tests.
- Seed minimal data for each scenario.
- Tear down and clean after tests.
Guidance
- Prefer isolated databases per test suite.
- Avoid shared mutable state across tests.
- Keep tests slower but reliable.
References
references/test-db.mdfor DB setup options.references/migrations.mdfor test migration usage.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?