- Go (See pinned version in go.mod)
- git (while git is not required to run commitsar it is needed to set up tests)
This project also uses magefiles. To get up and running please run:
go install github.com/magefile/mage. These allow us to set up templates and cross-platform commands.
mage test. This will git clone all git bundles and run tests in the entire repo. To run single tests use the VSCode functionality or provide full path to
In order to test commitsar against complicated real-life examples we use git bundles. These can be
git cloned like real repositories. They allow us to created real history and prevent edge cases that can happen when creating git history using shell (all commits have same timestamp for example).
- create a new folder testdata/
- cd into it
- git initgitz
- commit away
- once ready run
git bundle create name_of_repo.bundle --all
- copy the bundle to testdata/
All files outside of .bundle files are ignore in the testdata folder so you don't have to worry about cleanup.
This project uses the conventional commit style, it is also the default style commitsar uses.