You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just wondering if it would come in handy that tests are automatically executed when trying to commit. Sometimes we do not want to push commits that break our tests... But sometimes we do want this... what do you think?
The text was updated successfully, but these errors were encountered:
I'm mainly using this with Fork, which has unit tests and functional tests. I'd probably want the unit tests to run when committing (because they are fast), but I wouldn't want the functional tests to run, because this would slow development down a lot.
It could be possible to run a phpunit -c app --testsuite=unit, but this would tie this pre-commit script to the Fork implementation of unit tests. When I'm programming a Symfony project (which I do more and more), I may not have the same setup.
I'm thus not really a pro of adding this. (At least nog by default).
If I could find a way to check if we have the project structure of Fork and have a testsuite called unit, I would probably add this, but I'm not that good at bash scripting, so I'm not really sure (at this moment) if I could create this.
Hi @WouterSioen,
I was just wondering if it would come in handy that tests are automatically executed when trying to commit. Sometimes we do not want to push commits that break our tests... But sometimes we do want this... what do you think?
The text was updated successfully, but these errors were encountered: