Local test proof

Prove your local test run in every pull request.

Gotsha runs tests and linters on your machine, stores the result in Git notes, and lets reviewers verify it in GitHub or GitLab.

  • Tests run locally
  • Results attached with Git notes
  • CI verifies the Git note

Install

Gotsha is distributed as a Ruby gem, so you need to have Ruby working on your system. Apart from that, the only other dependency is Git.

Gotsha will guide you through setup. It should take less than 3 minutes. If you get stuck, run gotsha help.

How it works

1

Run tests locally

Run the project test suite automatically on commit or push, or manually right before you ask for review.

2

Attach results to the SHA

The full result is stored as a Git note for the current commit SHA.

3

Show status in review

Push as usual. A small CI script verifies the note and exposes the result in your PR or MR.

Commit hook verifies the local run
Terminal output showing Gotsha verifying a commit
Push includes the test result note
Terminal output showing Gotsha test results being pushed
GitHub Action checks the note
GitHub Action output verifying Gotsha results
Reviewers see the status on the commit
GitHub commit checks showing Gotsha status