Algunos detalles editoriales siguen disponibles en inglés.

Prompt Solo editorial Actualizado

Prompt de generación de pruebas unitarias

Genera pruebas unitarias enfocadas desde una función o módulo: camino feliz, límites y errores esperados, marcando las suposiciones.

pruebas unitariasgeneración de pruebasingeniería de prompts
Prompt reutilizable

Personalízalo

Idioma del prompt: inglés
Funciona en tu navegador

Flujo de trabajo

5 pasos
  1. Paste the code and pick a framework.
  2. Generate the tests.
  3. Review each test's intent and assumptions.
  4. Run the suite and fix failures.
  5. Add only the tests that add real coverage.

Prompt negativo

testing private internals, brittle snapshots, flaky timing assertions, empty test cases

Parámetros a registrar

framework
infer from the project
coverage
happy path + boundaries + errors
output
tests + run instructions
Variables
3 campos personalizables

Limitaciones

  • Generated tests can assert the wrong expected value.
  • They may miss framework-specific setup.
  • They are a starting point, not a proof of correctness.

Plantillas relacionadas

Ver todo →