f3d5ddcddd
Se crean 9 issues para trackear el desarrollo de agentes: Nuevos agentes: - #001 orchestrator: coordinar agentes para proyectos - #002 ci-cd: pipelines de build/test/deploy - #003 testing: tests automatizados Go y React - #004 api-client: gestión de APIs externas - #005 docs-generator: documentación automática Mejoras a existentes: - #006 db-reader: PostgreSQL, migraciones - #007 backend-lib: nuevos módulos shell/app - #008 frontend-lib: versionado, testing - #009 gitea: Actions, templates
1.4 KiB
1.4 KiB
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
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