Search code examples
phpgitphpunitphpstormgithooks

Run PHPUnit test when saving file in PHPStorm


I have configured PHPUnit on PhpStorm Version 8.0.3 and I was asking myself if it would be possible to run a Test each time I save a file or push it with git.

I searched on Google but didn't find any info about this.

I know it's possible to run the test manually after pushing it with git, but that's not what I'm looking for.


Solution

  • Yes it's possible, you can use pre-push hook.
    But i think better don't do it...