con un clic
validate-test
Validate test coverage against providers (read-only)
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Validate test coverage against providers (read-only)
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Implement new feature with self-testing loop until 100% pass
Fix Prisma schema compilation errors
Fix Interface and Controller compilation errors
Fix Provider, Collector, Transformer compilation errors
Fix Test compilation errors
Validate Prisma schema against requirements specification (read-only)
| name | validate-test |
| description | Validate test coverage against providers (read-only) |
| allowed-tools | Read, Grep, Glob |
Validate that test infrastructure properly covers providers and interfaces. This skill only checks for discrepancies - it does NOT modify any files.
Compare interface/provider implementations with test coverage and report:
┌─────────────────────────────────────┐
│ Step 1: Read Interfaces │
│ /src/api/structures/ (ICreate) │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 2: Read Test Files │
│ /test/prepare/ │
│ /test/generate/ │
│ /test/features/api/ │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 3: Compare & Report │
│ - Missing prepare functions │
│ - Missing generate functions │
│ - Missing test scenarios │
│ - Empty implementations │
└─────────────────────────────────────┘
grep -r "export type ICreate\|\.ICreate" src/api/structures/ --include="*.ts"
List all interfaces that need test data generators.
# Prepare functions
find test/prepare -name "prepare_random_*.ts" -type f
# Generate functions
find test/generate -name "generate_random_*.ts" -type f
# Feature tests
find test/features/api -name "*.ts" -type f
For each ICreate interface:
{}For each prepare_random function:
For each entity:
# Validation Report: Test Infrastructure
## Summary
- ICreate interfaces: X
- prepare_random functions: Y
- generate_random functions: Z
- Test files: W
## ✅ Valid Items
- [Prepare] `prepare_random_entity` - All fields generated
- [Generate] `generate_random_entity` - Properly calls API
- [Test] `test_entity_create` - Complete assertions
## ❌ Issues Found
- [Missing Prepare] `another_entity` - No prepare function for ICreate
- [Missing Generate] `another_entity` - No generate function
- [Empty Prepare] `prepare_random_thing.ts` - Returns `{}`
- [Orphan Generate] `generate_random_old.ts` - No matching prepare function
## ⚠️ Warnings
- [Missing Test] `entity` - No delete test scenario
- [Edge Case] `entity` - No validation error test
- [Edge Case] `entity` - No unauthorized access test
## Recommendation
Run `/fix-test` to fix the issues above.
This skill is READ-ONLY.
To fix issues, use /fix-test skill.