test-data-factory-generator

Generate build, buildMany, and named test data factory functions for data models.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/mouayadakel/flixCamFinal --skill test-data-factory-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-data-factory-generator
Source: https://github.com/mouayadakel/flixCamFinal/tree/main/.cursor/skills/test-data-factory-generator
Command: npx skills add https://github.com/mouayadakel/flixCamFinal --skill test-data-factory-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of test data factories, simplifying the process of generating realistic and varied data for software testing.

Core Features & Use Cases

  • Factory Generation: Creates build, buildMany, and named variant factory functions for your data models.
  • Type Safety: Ensures generated data adheres to your existing model types, often using Prisma or shared TypeScript definitions.
  • Use Case: When writing unit tests for a new user model, you can use this Skill to generate a factory that can create users with different states (e.g., buildActiveUser, buildInactiveUser).

Quick Start

Use the test-data-factory-generator skill to create factories for the 'Product' model.

Frequently Asked Questions about test-data-factory-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate test data factories for my data models?

Test data factories generate realistic mock data for your software models during testing. They provide build, buildMany, and named variant functions to easily create varied data states for unit tests.

How do I create mock data with different states for unit testing?

Yes, the Skill integrates with Prisma to ensure type consistency. It ensures generated mock data adheres to your existing model types by leveraging shared TypeScript definitions during factory generation.

Does this tool work with Prisma for type-safe mock data generation?

You create mock data with different states by generating named variant factory functions. The Skill can produce specific builders like buildActiveUser or buildInactiveUser to represent different model states.

What is the best way to automate test data factory generation for TypeScript models?

The best way to automate test data factory generation is using a Skill that leverages Faker for realistic data. It outputs structured factory functions ensuring type safety with your TypeScript definitions.

Can I use Faker for realistic data generation within my test factories?

You can generate multiple mock data records at once using the buildMany factory function. This function allows you to quickly populate your testing environment with varied data batches for your models.