Skip to content

This is a git precommithook that runs sbt test before a commit and aborts the commit if tests fail

License

Notifications You must be signed in to change notification settings

MeiSign/precommithook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git sbt test precommithook

This is a git precommithook that runs sbt test before a commit and aborts the commit if tests fail

Requirements

It works only in unix environments. It has to be a sbt project!!

How to use it?

Put the sbt script in your project root directory to make sure the tests can be run no matter if a local sbt installation is available or not.

Put the precommit script in the .git/hooks directory of your project. This will enable the hook.

I want to commit without testing

If you want to commit without testing you can use git commit -m "Message" --no-verify

About

This is a git precommithook that runs sbt test before a commit and aborts the commit if tests fail

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages