一键导入
validate-test
Validate test coverage against providers (read-only)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate test coverage against providers (read-only)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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)
基于 SOC 职业分类
| 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.