in Web Development

Automatically Run PHPUnit Tests Before Git Push

When you're working on a project with a strong test suite you'll want to make sure that everything you push to the repository doesn't break any of the tests that you have in your project.

This means that before you preform a git push you'll need to make sure you run phpunit and that all your tests have passed.

In this tutorial we're going to add a rule into your git repository to make sure that we can't push any new code into the repository without the

Login to access all content on Paulund

Login here

Subscribe To The Weekly Newsletter

Get weekly updates to your email