# Issue #003: Crear agente testing **Tipo:** feat **Prioridad:** media **Estado:** pendiente ## Descripción Crear un agente especializado en testing que pueda generar, ejecutar y analizar tests para proyectos Go y React. ## Capacidades requeridas ### Go Testing - [ ] Generar tests unitarios con `go test` - [ ] Generar tests de tabla (table-driven tests) - [ ] Mocks con testify o gomock - [ ] Coverage con `go test -cover` - [ ] Benchmarks con `go test -bench` ### React Testing - [ ] Tests con Vitest - [ ] Tests de componentes con Testing Library - [ ] Tests E2E con Playwright - [ ] Coverage reports ### Análisis - [ ] Parsear resultados de tests - [ ] Identificar tests fallidos - [ ] Sugerir fixes para tests rotos - [ ] Generar reporte de coverage ## Flujo de trabajo ``` Usuario: "Genera tests para el módulo auth" Agente: 1. Lee el código del módulo 2. Identifica funciones públicas 3. Genera tests unitarios 4. Ejecuta tests 5. Reporta coverage ``` ## Templates ### Go test template ```go func TestNombreFuncion(t *testing.T) { tests := []struct { name string input string expected string }{ {"caso normal", "input", "expected"}, {"caso edge", "", ""}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { // ... }) } } ``` ## Dependencias - Go 1.22+ con soporte de testing - Vitest/Playwright para React