The hooks tag has no usage guidance.
25
votes
7answers
3k views
Is it a good practice to run unit tests in version control hooks?
From the technical point of view it is possible to add some pre/post push hooks which will run unit tests before allowing some specific commit to be merged to remote default branch.
My question is - ...
17
votes
4answers
723 views
What should plugins use: hooks, events or something else?
Consider an app that allows plugins to react to its program flow.
I know 2 ways to achieve this: hooks and events
1. Hooks
Use calls to empty functions inside the main program flow. These functions ...