Skip to content

Instantly share code, notes, and snippets.

git-pre-push-tests

Just a thought about test execution and git hooks

I’m creating this post to share a practice that I decided to adopt recently: ###Bind test execution to git pushes.

#####First of all: Git Hooks. Git hooks are a way to execute scripts every time some important action is executed on git. (git hooks). Today we will use the hook pre-push to execute a project's tests to make sure that everything is ok before actually execute the push to the repository.