Skip to content

Instantly share code, notes, and snippets.

@ramingar
Created December 1, 2015 08:26
Show Gist options
  • Select an option

  • Save ramingar/5ce054cdc39645a13101 to your computer and use it in GitHub Desktop.

Select an option

Save ramingar/5ce054cdc39645a13101 to your computer and use it in GitHub Desktop.
Ejecutar los tests desde tu versión hacia atrás #git #bisect #test #bug

Realiza una ejecución de un comando en cada commit para realizar la búsqueda de un bug. P.ej. git bisect run phpunit -c app MyClassTest.php

Cuando me devuelva un error, me marcará en qué commit se produjo

git bisect start
git bisect bad __hashRevisionBad__ #Hash de la revisión donde se ha detectado el fallo
git bisect good __hashRevisionGood__ #Hash de una revisión en la que los test pasaban
git bisect run __command__ #El script que ejecuta los tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment