Habilidades test-generator
🧪

test-generator

Seguro 🌐 Acesso à rede⚙️ Comandos externos

Generate Unit Tests Automatically

Também disponível em: Atyantik

Writing comprehensive unit tests is time-consuming and often incomplete. This skill analyzes your code and generates complete test suites with edge cases, error handling, and proper mocking.

Suporta: Claude Codex Code(CC)
📊 69 Adequado
1

Baixar o ZIP da skill

2

Upload no Claude

Vá em Configurações → Capacidades → Skills → Upload skill

3

Ative e comece a usar

Testar

A utilizar "test-generator". @test-generator src/utils/validator.js

Resultado esperado:

  • Creates validator.test.js with:
  • Tests for valid inputs
  • Tests for invalid inputs
  • Edge case tests (null, undefined, empty strings)
  • Tests for each validation rule
  • Mocked dependency tests

A utilizar "test-generator". @test-generator --coverage src/api/userService.ts

Resultado esperado:

  • Generates userService.test.ts
  • Includes coverage reporting setup
  • Tests all public methods
  • Adds integration test stubs

A utilizar "test-generator". @test-generator src/services/PaymentProcessor.py

Resultado esperado:

  • Creates test_payment_processor.py
  • Mocks external payment gateway
  • Tests success and failure scenarios
  • Validates error handling paths

Auditoria de Segurança

Seguro
v5 • 1/16/2026

This is a prompt-based skill containing only instructions for generating test code. The static findings are false positives: the analyzer misidentified metadata URLs as network calls, test-related terminology as cryptographic issues, and code examples as executable commands. No executable code, network access, file system access, or environment variable access exists.

2
Arquivos analisados
262
Linhas analisadas
2
achados
5
Total de auditorias

Fatores de risco

🌐 Acesso à rede (1)
⚙️ Comandos externos (3)
Auditado por: claude Ver Histórico de Auditoria →

Pontuação de qualidade

38
Arquitetura
100
Manutenibilidade
85
Conteúdo
22
Comunidade
100
Segurança
83
Conformidade com especificações

O Que Você Pode Construir

Legacy Code Test Coverage

Add tests to untested legacy codebases to improve reliability and enable refactoring.

New Feature Testing

Generate initial test suites for new features following team conventions.

Contribution Requirements

Create tests required for pull requests in projects with strict testing policies.

Tente Estes Prompts

Basic Test Generation
@test-generator src/utils/calculator.js
Coverage Focus
@test-generator --coverage src/api/userService.ts
Watch Mode
@test-generator --watch src/components/Button.jsx
Complex Module
@test-generator src/services/PaymentProcessor.py

Melhores Práticas

  • Review generated tests to ensure they match your testing philosophy
  • Add custom edge cases specific to your domain
  • Use the generated tests as a starting point, not the final version

Evitar

  • Blindly committing generated tests without review
  • Using generated tests as a substitute for thinking about test design
  • Generating tests for code that should be refactored first

Perguntas Frequentes

Which testing frameworks are supported?
Jest, Mocha, Vitest, pytest, unittest, Go testing, JUnit, TestNG, RSpec, and Minitest.
Can it generate integration tests?
Yes, it can generate integration tests where appropriate, following your project's patterns.
How does it handle external dependencies?
It automatically creates mocks for external dependencies like APIs, databases, and file systems.
Will it overwrite existing tests?
No, it preserves existing tests and only adds new ones for untested code.
Can I customize the test generation?
Yes, use flags like --coverage or --watch to control generation behavior.
Is the generated code production-ready?
The code follows best practices but always review and adjust for your specific needs.

Detalhes do Desenvolvedor

Estrutura de arquivos

📄 SKILL.md