Skip to content
Anthony Sottile edited this page Feb 7, 2018 · 3 revisions

We use a bunch of tools to guarantee the quality of n98-magerun2. If you are a contributor you should setup this tools.

PHPUnit

We install phpunit with dev-dependecies of n98-magerun2. PHPUnit can be started with:

vendor/bin/phpunit from root of your working copy.

Pre-Commit Hooks

Please install the pre-commit framework on your local machine. Have a look at https://pre-commit.com/ to get installation instructions.

After pre-commit is available on your machine please run this command in the root of your n98-magerun2 working copy.

pre-commit install

After that you have automatically git hooks running which prevent the checking of i.e. invalid or wrong styled PHP code.