test-infrastructure
Создавайте реальное покрытие тестами
Команды тратят время на заглушечные файлы, которые идут в покрытие, но не ловят баги. Этот навык создает настоящие тесты с реальными утверждениями, которые проверяют поведение и предотвращают регрессии до продакшена.
Baixar o ZIP da skill
Upload no Claude
Vá em Configurações → Capacidades → Skills → Upload skill
Ative e comece a usar
Testar
A utilizar "test-infrastructure". Audit our test coverage for the authentication module
Resultado esperado:
- Test Audit Report:
- • Tests with real coverage: 12 (1,847 lines)
- • Empty test files: 3 (auth.token.test.ts, auth.session.test.ts, auth.sso.test.ts)
- • Critical gaps: Password reset flow, Session refresh, SSO callback
- • Estimated work: 6 hours for full coverage
A utilizar "test-infrastructure". Write tests for our email validation function
Resultado esperado:
- Unit tests for emailValidator:
- • Valid emails: Returns true for user@example.com, test@domain.org
- • Invalid emails: Returns false for missing @, no domain, spaces
- • Edge cases: Max length 254 chars, special characters handled
- • Error cases: Empty string, null input, undefined
Auditoria de Segurança
SeguroPure prompt-based documentation skill containing only testing guidelines. No executable code, no file system access, no network calls, no command execution. The static findings are false positives caused by the scanner misinterpreting Markdown code fences and example test code. The skill-report.json already classified this as safe with no risk factors.
Fatores de risco
🌐 Acesso à rede (3)
📁 Acesso ao sistema de arquivos (1)
⚙️ Comandos externos (19)
Pontuação de qualidade
O Que Você Pode Construir
Аудит пробелов в покрытии тестами
Проанализировать кодовую базу, чтобы найти пустые тестовые файлы и определить критические пути без покрытия
Создание спецификаций тестов
Написать комплексные тесты для API endpoints, компонентов и сервисных слоев по лучшим практикам
Обеспечение стандартов качества
Сформировать правила тестирования, которые предотвращают заглушки и обеспечивают содержательные утверждения
Tente Estes Prompts
Audit our test suite. Count real test lines in each file, identify stub files with less than 50 lines, and report: total tests with coverage, empty test files, critical gaps, and estimated hours to fix.
Write unit tests for the contactScoringEngine function. Include tests for high engagement contacts, zero engagement contacts, and error cases. Use real assertions that verify exact scores.
Write integration tests for POST /api/contacts endpoint. Test happy path (creates contact with valid data), auth rejection (missing token), and validation errors (invalid email format). Verify database writes.
Write component tests for HotLeadsPanel. Test that it renders leads, filtering interaction works, and empty state displays correctly. Use React Testing Library with fireEvent for interactions.
Melhores Práticas
- Пишите тесты, которые действительно проверяют что-то значимое, а не просто запускают код
- Сначала приоритизируйте критические пути по выручке и безопасности, затем остальные функции
- Тестируйте ошибки и границы, а не только happy paths
Evitar
- Пустые тестовые файлы, которые увеличивают процент покрытия, но не тестируют поведение
- Мокание того, что вы должны тестировать
- Тесты, которые проходят независимо от того, работает код или нет