Test Data Factory - Create reusable and deterministic test data factories
Build reusable test data factories with realistic synthetic data, relationships, lifecycle hooks, and deterministic seeding for reproducible tests.
Tags
Updated: 2026-11-27Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Generate realistic synthetic data
- Build reusable factory classes
- Apply entity overrides
- Create related entities
- Seed deterministic randomness
- Build fluent object builders
- Register factory traits
- Run lifecycle hooks
- Reset data sequences
- Set up test seeders
- Clean up test records
Inputs
- Entity schemas or interfaces
- Override attributes
- Random seed
- Relationship definitions
- Factory traits
- Lifecycle hooks
- Entity count
Outputs
- Factory source files
- Builder source files
- Generated test entities
- Seeded database records
- Test seeding configuration
- Cleanup operations
Requirements
- Faker library
