test-data-gen

Generate realistic relational test data with edge cases for Prisma seed scripts.

13|3|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/heaptracetechnology/heaptrace-skills --skill test-data-gen-heaptracetechnology
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-data-gen
Source: https://github.com/heaptracetechnology/heaptrace-skills/tree/main/qa/test-data-gen
Command: npx skills add https://github.com/heaptracetechnology/heaptrace-skills --skill test-data-gen-heaptracetechnology

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generating realistic, relational test data is essential for robust development and testing. This skill provides end-to-end seeds with users, courses, enrollments, and edge-case records, enabling you to bootstrap realistic environments quickly.

Core Features & Use Cases

  • Realistic data factories that produce users with roles, courses with content, and enrollments with progress
  • Edge-case coverage including long names, unicode characters, empty fields, and boundary values
  • Idempotent seed strategy with upsert patterns and documented test accounts for easy reproducibility

Quick Start

Run the seed script to populate the database with realistic users, courses, enrollments, and edge cases for development and testing.

Frequently Asked Questions about test-data-gen

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

FAQPage Schema
How do I generate realistic test data with edge cases for Prisma seed scripts?

To generate realistic test data for Prisma seed scripts, use data factories that produce users, courses, and enrollments with edge cases like unicode characters and boundary values. This ensures referential integrity and robust development environments.

What is an idempotent seed strategy and why do I need it for database seeding?

An idempotent seed strategy uses upsert patterns to ensure repeated seed script runs produce consistent database states without duplicating records. You need it to maintain reproducible testing environments and documented test accounts.

Can I use this test data generation approach for JSON fixtures or API-based seeding?

Yes, you can apply this test data generation approach to JSON fixtures or API-based seeding across tenants, users, courses, and enrollments. It maintains referential integrity and edge-case coverage beyond standard database seeds.

How do I ensure referential integrity when generating relational test data?

Ensure referential integrity when generating relational test data by using factory functions that link users, courses, and enrollments. This approach maintains valid relationships across tenants and supports idempotent database seeds.

What edge cases should I include when creating realistic test data for seeded environments?

Include edge cases like long names, unicode characters, empty fields, and boundary values when creating realistic test data for seeded environments. This edge-case coverage ensures your application handles unusual but valid inputs gracefully.