Synaptic SkillsSynapticSkills
MarketplaceSkill GraphCriar SkillMCP ServerPlataformaEnterprise
v0.1.0-beta
Voltar ao Marketplace
DevelopmentSimplesAuto-Sync

Test Data Generator

porTHIAGONOMA·THIAGONOMA· v1.5.0 · atualizado em 2026-04-12T22:48:46.061Z
83
Score

Gera dados de teste realísticos e válidos para qualquer schema: Faker.js, Factory Boy, Hypothesis. Produz fixtures JSON, seeds SQL e dados de teste para mocks, integração e property-based testing.

testingfakerfixturesseed-datamockingproperty-testingtest-factories
Linguagens
TypeScriptJavaScriptPython
912Stars
78Forks
16.7KUsos
Fork

Documento do Skill

SKILL.mdtest-data-generator/workflow
Passo-a-passo detalhado do skill, referenciando as fases cognitivas:
1
SENSE — Identificar schema e requirements
```bash
# Prisma schema
cat prisma/schema.prisma | grep 'model ' | awk '{print $2}'
# TypeScript types
ls src/types/*.ts src/lib/types.ts 2>/dev/null
```
2
RECOMMEND — Gerar factories com Faker (TypeScript)
```typescript
// tests/factories/user.factory.ts
import { faker } from '@faker-js/faker/locale/pt_BR';
import type { User } from '@prisma/client';
export function createUser(overrides?: Partial<User>): Omit<User, 'id' | 'createdAt' | 'updatedAt'> {
return {
name: faker.person.fullName(),
email: faker.internet.email().toLowerCase(),
role: 'user',
avatarUrl: faker.image.avatar(),
bio: faker.lorem.sentence(),
...overrides,
};
}
// Factory com traits
export const UserFactory = {
admin: () => createUser({ role: 'admin' }),
withoutBio: () => createUser({ bio: null }),
};
```
3
RECOMMEND — Seed script (Prisma)
```typescript
// prisma/seed.ts
import { PrismaClient } from '@prisma/client';
import { createUser, createProduct } from '../tests/factories';
const db = new PrismaClient();
async function main() {
// Seed idempotente: upsert por campo único
const admin = await db.user.upsert({
where: { email: 'admin@test.com' },
update: {},
create: createUser({ email: 'admin@test.com', role: 'admin' }),
});
// Criar produtos relacionados ao admin
for (let i = 0; i < 10; i++) {
await db.product.create({ data: createProduct({ authorId: admin.id }) });
}
}
main().finally(() => db.$disconnect());
```
4
RECOMMEND — Property-based testing (Hypothesis — Python)
```python
from hypothesis import given, strategies as st
from myapp.validators import validate_cpf
@given(st.text(alphabet='0123456789', min_size=11, max_size=11))
def test_cpf_validator_never_crashes(cpf_candidate: str):
# O validator deve retornar True/False, nunca lançar exceção
result = validate_cpf(cpf_candidate)
assert isinstance(result, bool)
```
5
EVALUATE — Validar dados gerados
```typescript
// Verificar que o seed gera dados válidos
const users = await db.user.findMany();
users.forEach(user => {
expect(user.email).toMatch(/^[^@]+@[^@]+\.[^@]+$/);
expect(user.role).toBeOneOf(['user', 'admin', 'editor']);
});
```
6
REFLECT — Integrar no CI
```yaml
# Reset e seed antes dos integration tests
run: npx prisma migrate reset --force --skip-seed
run: npx prisma db seed
run: npm run test:integration
```
Reportar telemetria via mcp-skillschain

Telemetria de Agentes

Execuções
0
total
Taxa de Sucesso
0%
últimos 30d
Latência Média
0.0s
p50
Alucinação
0.0%
detecção
Tokens Entrada
0
avg 0/exec
Tokens Saída
0
avg 0/exec

Uso por Plataforma

Skills Relacionados

Compõe com ←API Test Generator
21%
Hebbian Synapse
Composite0.210
w = 0.3·α + 0.5·β + 0.2·γ
88
Similar a ←Web Application Testing
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
83
Similar a ←Playwright Interactive Skill
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
83
Similar a ←Playwright CLI Skill
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
80
Similar a ←Screenshot Capture
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
80
Similar a ←Autoresearch: Autonomous Iterative Experimentation
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
83
Similar a ←Test Planning & Quality Assurance Prompt
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
80
Similar a ←Chrome DevTools Agent
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
80
Similar a ←Creating Bug Reports for Oracle-to-PostgreSQL Migration
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
78
Similar a ←Creating Integration Tests for Oracle-to-PostgreSQL Migration
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
79
Similar a ←MSTest Best Practices (MSTest 3.x/4.x)
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
79
Similar a ←NUnit Best Practices
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
80
Similar a ←TUnit Best Practices
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
82
Similar a ←XUnit Best Practices
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
83
Similar a ←Evaluation-Driven Development for Python LLM Applications
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
83
Similar a ←JUnit 5+ Best Practices
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
83
Similar a ←javascript-typescript-jest
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
82
Similar a ←Planning Integration Testing for Oracle-to-PostgreSQL Migration
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
76
Similar a ←Automating Filling in a Form with Playwright MCP
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
78
Similar a ←Website Exploration for Testing
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
79
Similar a ←Test Generation with Playwright MCP
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
82
Similar a ←Polyglot Test Generation Skill
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
81
Similar a ←pytest-coverage
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
83
Similar a ←Quality Playbook Generator
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
85
Similar a ←Scaffolding an Integration Test Project for Oracle-to-PostgreSQL Migration
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
78
Similar a ←ScoutQA Testing Skill
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
85
Similar a ←Spring Boot Testing
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
79
Similar a ←unit-test-vue-pinia
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
80
Similar a ←Web Application Testing
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
83
Similar a ←A/B Test Setup
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
85
Co-executed ←Code Reviewer
40%
Hebbian Synapse
Composite0.400
w = 0.3·α + 0.5·β + 0.2·γ
94
Co-executed ←API Test Generator
40%
Hebbian Synapse
Composite0.400
w = 0.3·α + 0.5·β + 0.2·γ
88
Co-executed ←Git Diff Parser
40%
Hebbian Synapse
Composite0.400
w = 0.3·α + 0.5·β + 0.2·γ
86
Co-executed ←SOLID Refactor
40%
Hebbian Synapse
Composite0.400
w = 0.3·α + 0.5·β + 0.2·γ
82
Co-executed ←Playwright Interactive Skill
50%
Hebbian Synapse
Composite0.499
w = 0.3·α + 0.5·β + 0.2·γ
83
Co-executed ←Playwright CLI Skill
49%
Hebbian Synapse
Composite0.488
w = 0.3·α + 0.5·β + 0.2·γ
80
Co-executed ←Screenshot Capture
49%
Hebbian Synapse
Composite0.491
w = 0.3·α + 0.5·β + 0.2·γ
80
Co-executed ←Test Planning & Quality Assurance Prompt
47%
Hebbian Synapse
Composite0.475
w = 0.3·α + 0.5·β + 0.2·γ
80
Co-executed ←Creating Integration Tests for Oracle-to-PostgreSQL Migration
49%
Hebbian Synapse
Composite0.491
w = 0.3·α + 0.5·β + 0.2·γ
79
Co-executed ←MSTest Best Practices (MSTest 3.x/4.x)
49%
Hebbian Synapse
Composite0.494
w = 0.3·α + 0.5·β + 0.2·γ
79
Co-executed ←NUnit Best Practices
49%
Hebbian Synapse
Composite0.485
w = 0.3·α + 0.5·β + 0.2·γ
80
Co-executed ←TUnit Best Practices
48%
Hebbian Synapse
Composite0.478
w = 0.3·α + 0.5·β + 0.2·γ
82
Co-executed ←XUnit Best Practices
47%
Hebbian Synapse
Composite0.471
w = 0.3·α + 0.5·β + 0.2·γ
83
Co-executed ←Evaluation-Driven Development for Python LLM Applications
49%
Hebbian Synapse
Composite0.488
w = 0.3·α + 0.5·β + 0.2·γ
83
Co-executed ←Planning Integration Testing for Oracle-to-PostgreSQL Migration
51%
Hebbian Synapse
Composite0.506
w = 0.3·α + 0.5·β + 0.2·γ
76
Co-executed ←Automating Filling in a Form with Playwright MCP
47%
Hebbian Synapse
Composite0.471
w = 0.3·α + 0.5·β + 0.2·γ
78
Co-executed ←Website Exploration for Testing
50%
Hebbian Synapse
Composite0.501
w = 0.3·α + 0.5·β + 0.2·γ
79
Co-executed ←Test Generation with Playwright MCP
51%
Hebbian Synapse
Composite0.506
w = 0.3·α + 0.5·β + 0.2·γ
82
Co-executed ←Polyglot Test Generation Skill
48%
Hebbian Synapse
Composite0.478
w = 0.3·α + 0.5·β + 0.2·γ
81
Co-executed ←pytest-coverage
49%
Hebbian Synapse
Composite0.488
w = 0.3·α + 0.5·β + 0.2·γ
83
Co-executed ←Scaffolding an Integration Test Project for Oracle-to-PostgreSQL Migration
47%
Hebbian Synapse
Composite0.475
w = 0.3·α + 0.5·β + 0.2·γ
78
Co-executed ←ScoutQA Testing Skill
50%
Hebbian Synapse
Composite0.504
w = 0.3·α + 0.5·β + 0.2·γ
85
Co-executed ←Spring Boot Testing
48%
Hebbian Synapse
Composite0.482
w = 0.3·α + 0.5·β + 0.2·γ
79

Árvore do Skill

Test Data Generator
test-data-generator
Fases Cognitivas6
1.SENSE: Percepção
2.CONTEXTUALIZE: Contextualização
3.HYPOTHESIZE: Hipótese
4.RECOMMEND: Recomendação
5.EVALUATE: Avaliação
6.REFLECT: Reflexão
Triggers15
generate test datagerar dados de testecreate test fixturescriar fixturesfaker dataseed databasemock datadados de testetest factoryfactory_boyproperty based testinghypothesis testinggerar seed sqlgenerate fixturescriar mock data

Avaliar este Skill

Score Breakdown

⭐Avaliação Humana0%
🤖Sucesso de Agentes0%
🕐Atualidade100%
🔗Saúde de Dependências100%
🕸️Centralidade no Grafo0%
🛡️Segurança50%
CompositeScore = α·Humano + β·Agente + γ·Recência + δ·Deps + ε·Centralidade + ζ·Segurança

Instalação

$ synaptic mcp download test-data-generator
$ synaptic skills detail test-data-generator
$ synaptic skills live test-data-generator

Links

GitHub Repository