Test Data Generator

入门testing最低上下文:16K

Generates realistic test data, fixtures, and seed files for databases and APIs. Creates data that respects constraints (foreign keys, unique fields, valid formats) and covers edge cases. Supports JSON, SQL, CSV, and factory patterns.

使用场景

  • Generating database seed files for development
  • Creating API response fixtures for frontend testing
  • Building factory functions (Faker.js, Factory Boy)
  • Generating edge case data (unicode, long strings, nulls)
  • Creating realistic demo data for presentations

示例提示词

Generate test data for the following schema:

```sql
[paste schema or describe entities]
```

Requirements:
- 20 records per table
- Realistic names, emails, dates (not "test1", "test2")
- Respect foreign key relationships
- Include edge cases: empty strings, max-length values, special characters
- Output format: [SQL INSERT / JSON / TypeScript factory functions]

Additional constraints:
- [e.g., "dates should span last 6 months", "include some inactive users"]

推荐模型

兼容工具

claude-codecursorgithub-copilotkiroany

模态

输入: text, code
输出: code

相关 Skills

作者

OpenModels Community

@openmodelsrun