Saltar al contenido
Skillpedia
Pruebas75 mil · #2945

mutation-testing

Qué hace

Esta skill configura y revisa las pruebas de mutación, un método que hace pequeños cambios en tu código para ver si las pruebas fallan. Es para desarrolladores que quieren saber si sus pruebas son sólidas en la lógica crítica.

Cuándo usarla

  • ✓Cuando le pides al agente que compruebe si tus pruebas detectarían errores reales.
  • ✓Cuando la cobertura parece alta pero dudas de que las pruebas verifiquen resultados significativos.
  • ✓Cuando quieres centrar la mejora de las pruebas en un módulo importante de lógica de negocio.

Link de la skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/mutation-testing/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/mutation-testing/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Mi código tiene mucha cobertura de pruebas, pero no estoy seguro de que detecten errores reales. ¿Puedes configurar pruebas de mutación?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente configura Stryker para un módulo, lo ejecuta para inyectar pequeños cambios y enumera los cambios que las pruebas no detectaron. Después mejora las pruebas para que esos cambios sí se detecten.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Use mutation testing to measure how well tests detect bugs

A codebase can have 90% line coverage and still ship critical bugs if tests only execute code without asserting meaningful outcomes. Mutation testing reveals these gaps by proving that your tests can distinguish correct code from subtly broken code — the standard that actually matters in production.

Quick Reference

  • Code coverage tells you which lines were executed; mutation score tells you which bugs were caught
  • Stryker injects small code changes (mutations) and checks whether tests fail — if they don't, the tests are weak
  • Aim for 80%+ mutation score on critical business logic paths
  • Run Stryker on a focused scope (one module) rather than the whole codebase to keep CI times manageable

Check

Assess whether this module has mutation testing configured and whether the mutation score on critical paths meets the project's quality threshold.

Fix

Set up Stryker for this module, run an initial mutation report, and improve tests to kill surviving mutants in the critical business logic paths.

Explain

Explain what mutation testing is, how Stryker works, and why mutation score is a more meaningful quality signal than code coverage alone.

Code Review

Review the Stryker configuration and mutation report to identify surviving mutants in critical code paths, and suggest test improvements to kill them.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/testing/mutation-testing

Preguntas frecuentes

¿En qué se diferencia la puntuación de mutación de la cobertura?

La cobertura muestra qué líneas se ejecutaron, mientras que la puntuación de mutación muestra qué errores detectaron realmente las pruebas.

¿Por qué solo un módulo a la vez?

La skill recomienda un alcance acotado para que los tiempos de ejecución de CI se mantengan manejables.

¿Qué puntuación debo buscar?

La skill sugiere apuntar a un 80 por ciento o más en las rutas de lógica de negocio críticas.

Detalles

Descripción original del autor

Use when evaluating test quality on modules containing business logic, calculation utilities, or state machines to determine whether the tests provide genuine defect detection.

repo: thedaviddias/Front-End-Checklist

Popularidad

Estrellas en GitHub
75 mil
Posición en el ranking
#2945
Licencia
MIT
Actualizada
31/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas