The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Automatically running tests before commits with ghooks

Automatically running tests before commits with ghooks

3:02
Wouldn't it be nice if everyone ran the tests before committing code? With ghooks, you can automatically add a githook when dependencies are installed which will allow you to define common scripts to be run at various points during git actions (like committing). In this lesson, we'll add a githook for running the tests before we commit code to make sure we don't commit anything that breaks the tests.
Watch this lesson now
Avatar
egghead.io

Wouldn't it be nice if everyone ran the tests before committing code? With ghooks, you can automatically add a githook when dependencies are installed which will allow you to define common scripts to be run at various points during git actions (like committing). In this lesson, we'll add a githook for running the tests before we commit code to make sure we don't commit anything that breaks the tests.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?