Test data management

From rnavarych/alpha-engineer · View interactive version

Test data management is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Test data management with factory patterns (Faker.js, Fishery, Factory Bot), database seeding, test data isolation (transactions, cleanup), anonymization and masking for production data, synthetic data generation, fixture management, and shared test state risks. Use when designing test data strategi

How to use this skill

Skill file

Test Data Management

When to use

Core principles

  1. Every test owns its data — tests that share state are tests that fail randomly; isolation is not optional
  2. Factories over fixtures for most tests — fixtures are static and collide; factories generate fresh unique data every run
  3. Sequences prevent collisions — unique fields must use sequence numbers or UUIDs, not hardcoded values
  4. Production data never reaches test environments raw — anonymize in a separate pipeline, maintain referential integrity
  5. Seed the RNG for reproducibility — faker.seed(12345) turns a flaky data generator into a deterministic one

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.