gotests
« Back to VersTracker
Description:
Automatically generate Go test boilerplate from your source code
Type: Formula  |  Latest Version: 1.9.0@0  |  Tracked Since: Oct 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: golang testing tdd cli developer-tools
Install: brew install gotests
About:
Gotests is a command-line tool that analyzes your Go source code to automatically generate comprehensive unit tests. It creates test functions with structured table-driven test cases, including edge cases and error handling scenarios. This significantly reduces the boilerplate work involved in writing tests, allowing developers to focus on implementing the actual test logic.
Key Features:
  • Generates table-driven tests from source code
  • Creates test cases for exported functions and methods
  • Supports generating tests for existing code (import mode)
  • Produces idiomatic Go test code
  • CLI tool for easy integration into development workflows
Use Cases:
  • Scaffolding unit tests for new Go packages
  • Adding test coverage to existing Go projects
  • Ensuring consistent test structure across a team
Alternatives:
  • mockery – Generates mock interfaces instead of unit test boilerplate
  • go test -cover – Measures coverage but doesn't generate new tests
Version History
Detected Version Rev Change Commit
Oct 28, 2025 5:07pm 0 VERSION_BUMP 5e3bd9be
Sep 12, 2025 1:00pm 0 VERSION_BUMP 4c644ab9