digitalpulp / pre-commit-php

Pre-commit scripts appropiate for *any* PHP project. These hooks are made as custom plugins under the [pre-commit](http://pre-commit.com/#new-hooks) git hook framework.
https://www.digitalpulp.com
Apache License 2.0
54 stars 36 forks source link

Allow adding arguments to php-unit hook #11

Open islomar opened 4 years ago

islomar commented 4 years ago

Mimicking the work done for the php-stan hook, I have added support in php-unit for passing arguments.

This way, for example, you could run in a pre-push hook only the tests with a certain tag/group (e.g. the isolated ones).

islomar commented 4 years ago

I didn't find a good way to test it locally, any hint to do it properly? Thanks :-)