What problem does it solve?
This Skill streamlines the creation of consistent, composable, and realistic test data for software development, reducing the effort and improving the reliability of testing.
Core Features & Use Cases
- Factory Pattern: Define reusable factories for creating objects with default and overridden properties.
- Builder Pattern: Construct complex objects step-by-step, ideal for scenarios with many optional configurations.
- Relationship Handling: Easily generate related data entities (e.g., users with orders).
- Traits: Apply predefined sets of attributes to objects for specific scenarios (e.g., 'verified', 'suspended').
- Realistic Data: Utilizes libraries like Faker to generate lifelike data for various fields.
- Database Persistence: Integrates with ORMs like Prisma for direct database seeding.
- Use Case: When testing an e-commerce application, use this Skill to generate a user, several products, and a complete order with associated items, ensuring all relationships and data types are correctly represented.
Quick Start
Use the test-data-factory-builder skill to create a new user with the email '[email protected]'.