git-testkit

SHIPPED

Go testing library for git operations.

Tech stack

  • Go
$ git-testkit --help

git-testkit: Go testing library for git operations.

Usage:
  git-testkit [flags]

Flags:
  -h, --help     Show help
  -v, --version  Show version
  --dry-run      Preview without executing

About

Standalone Go testing library extracted from git-fire’s internal testutil/ package. Makes writing tests for git operations simple and repeatable. I use it in git-fire’s tests and git-rain’s tests so both CLIs prove behavior against real repositories, not brittle mocks.

Stop mocking git or fighting temp directories. git-testkit gives you real git repos in test isolation with a clean API for setup, assertions, and teardown. Extracted from git-fire’s battle-tested internal helpers.

Related

Size
BEN & CO. DUAL-TIME DATE GMT-MASTER: DEV EDITION SUPERLATIVE INFRASTRUCTURE PRODUCTION READY STASHED LOCALLY 28