Skip to content

Fase 1.4: Testing Integral MVP

← Anterior: 1.3 Endpoints | Fase 2 SSE →


Testing integral MVP (end-to-end)

Archivo: */backend/background-jobs-system.md

Rama: test/background-jobs-e2e

Fase: 1.4: Testing Integral MVP

Estimación: 8 horas

Dependencias: Todas tareas Fase 1.1-1.3

Deliverables

  • [ ] Tests end-to-end: dispatch → worker ejecuta → status actualizado
    • [ ] Test dispatch factura batch
    • [ ] Test polling status
    • [ ] Test completado exitosamente
    • [ ] Test con error handled
  • [ ] Multi-tenancy tests
    • [ ] Diferentes schemas no se interfieren
    • [ ] JobModel filtra por schema
    • [ ] Worker procesa schema correcto
  • [ ] Performance tests
    • [ ] 100 jobs en paralelo
    • [ ] Worker latency < 1s por job
    • [ ] Polling no bloquea API
  • [ ] Concurrency tests
    • [ ] Mismo job no ejecutado 2 veces
    • [ ] Race condition handling
  • [ ] Database migration tests
    • [ ] Rollback sin errores
    • [ ] Schema compatible con versiones anteriores
  • [ ] Coverage >= 85%

← Anterior: 1.3 Endpoints | Fase 2 SSE →