Project

gotsha

0.0
No release in over 3 years
Gotsha: your local testing CI
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 2.0
 Project Readme

Gotsha — your local testing CI

Pushing untested commits? Gotsha!

Installation

gem install gotsha # or add `gem "gotsha"` to you Gemfile

gotsha init
gotsha configure # this will open the config file; it's short and very important, so please, read it :-)

If you got stuck somewhere, you can always use gotsha help.

What is it?

Gotsha is a tiny tool that lets you “sign off” your commit locally: it runs your tests and then stores the test results with the commit SHA (hence the gem name: got-SHA). Your pull request can then be verified against that record, so reviewers know you actually ran the checks before asking for review.

Instead of pushing everything to CI, you can run the same checks locally (faster, cheaper, works offline) and prove you did it. Gotsha will make this proof visible in your pull request.

And the best part? It all happens automatically!

image

Then, you can see the tests results in a Github action:

image

(Screenshots from a real demo pull request; check it out!)

Based on your workflow and tests speed, you can configure them to auto-run on every commit, before every push, or just manually. Whenever pushing to remote repository, the Git note (which is what's used to store the test results) gets sent there as well.

Both Github and GitLab are supported out of the box!

Do you like Gotsha?

I like coffee!