git pre-commit hook - commit if all RSpec tests passed
If you or your colleages lack discipline to run tests first before commiting you can use this pre-commit hook which won't let you commit unless all RSpec test passed.
You can modify it easily to run any tests suite in any language you like.
Source on github: https://github.com/depy/my-git-hooks
Written by Matjaz Muhic
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#