Flaky Test
Prueba inestable
Un Flaky Test puede pasar o fallar sin cambiar el código. El tiempo, el orden, el estado compartido, el azar o sistemas externos suelen causarlo.
Otro ejemplo
Una prueba de navegador falla en paralelo porque dos procesos comparten la misma cuenta. Usar fixtures únicos y esperar a los eventos evita este choque.
Partes principales
- 01Code or behavior under test
- 02Observable evidence
- 03Coverage, failure, and recovery
Úsalo cuando
Registra y repite el fallo. Si está bloqueado temporalmente, nombra un responsable y soluciona la causa cambiante.
No lo uses cuando
Evita reintentos a ciegas, cuarentenas para siempre, echar la culpa sin apoyo y creer que un reintento en verde lo arregla todo.
Nombre usado en código
repetition + seed + timing/order isolation Antes de lanzarlo
Check the environment and prepared test data (fixture). Define a result you can observe, failure and edge cases, isolation, stable inputs, useful error details, and cleanup. Set a time budget, owner, and flaky-test rule.
Outcome: Complete the task with Prueba inestable (Flaky Test). User context: Una prueba de navegador falla en paralelo porque dos procesos comparten la misma cuenta. Usar fixtures únicos y esperar a los eventos evita este choque. Validation approach: Prueba inestable (Flaky Test). Why it fits: Registra y repite el fallo. Si está bloqueado temporalmente, nombra un responsable y soluciona la causa cambiante. Do not use it when: Evita reintentos a ciegas, cuarentenas para siempre, echar la culpa sin apoyo y creer que un reintento en verde lo arregla todo. Test requirements: Name the system and test environment. Define prepared test data, other inputs, and the result you can observe. Include failure and edge cases, allowed error, isolation, and cleanup. Test operations: Make failures easy to diagnose. Control random or changing inputs. Name an owner. Keep the test fast and simple enough for its release gate. Acceptance criteria: The test fails for the known bug and passes after the fix. It repeats in the target environment, gives useful evidence, and does not expose or change unrelated data. Evidence and limits (evidence boundary): Ningún estándar oficial único controla todo el término. Su significado puede cambiar según equipos, plataformas o marcos. Unknowns to confirm: Release gate, environment, prepared test data, allowed error, time budget, owner, and flaky-test rule.
Revisa esta petición
Review how Prueba inestable (Flaky Test) is used now. Definition: Un Flaky Test puede pasar o fallar sin cambiar el código. El tiempo, el orden, el estado compartido, el azar o sistemas externos suelen causarlo. Release checks: Check the environment and prepared test data (fixture). Define a result you can observe, failure and edge cases, isolation, stable inputs, useful error details, and cleanup. Set a time budget, owner, and flaky-test rule. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.