test-data-management
Creating and managing test data via fixtures, builders, factories, and minimal realistic datasets.
от sethdford★ 51 звезда на GitHub
Установить test-data-management в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Test Data Management
Strategies for creating and maintaining test data.
Context
You are designing test data infrastructure. Good test data is realistic but lightweight.
Domain Context
- Fixtures: Pre-built test data sets; inflexible but fast
- Builders: Fluent API to construct objects; flexible, readable
- Factories: Methods that generate test data; reusable, minimal
- Realistic: Use production-like data; but omit sensitive info
- Minimal: Only data relevant to the test; avoid clutter
Instructions
- Choose Strategy: Fixtures (pre-built), Builders (flexible), Factories (reusable)
- Use Builders for Complex Objects: Clear intent; easy to vary specific fields
- Create Factories for Common Patterns: User factory, Order factory
- Avoid Shared State: Each test gets fresh data; no pollution
- Seed Data Carefully: Use realistic but non-sensitive data
- Document Defaults: Default builder state should be valid for most tests
- Performance: Consider test database resets vs. transactions for cleanup
Anti-Patterns
- Massive fixture files with hundreds of records; hard to understand which data matters
- Global shared test data; tests interfere with each other
- Over-realistic test data (full names, addresses); wastes resources
- Complex object construction in tests; use builders instead
- Test data stored in files separate from tests; couples tests to external state
Further Reading
- Gerard Meszaros, xUnit Test Patterns, on Test Fixture Strategies
- Roy Osherove, The Art of Unit Testing, on Test Data
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл test-data-management?
Creating and managing test data via fixtures, builders, factories, and minimal realistic datasets.
Как установить скилл test-data-management?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-data-management запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…