🍺 BREW Explorer

← all formulae

gotests

brew install gotests v1.9.0 Apache-2.0

Automatically generate Go test boilerplate from your source code

21
30-day installs · #6700
68
90-day · #6522
493
365-day · #5157
5.3k
★ GitHub stars · updated 9mo ago

Build dependencies

go

GitHub topics

code-generator commandline go go-test go-testing golang golang-application golang-testing golang-tools gotests table-driven-test table-driven-testing test-driven-development test-generation testing testing-golang testing-tools

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "go"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Automatically generate Go test boilerplate from your source code",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:21+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "gotests",
  "github_default_branch": "develop",
  "github_last_commit_at": "2025-10-30T18:15:01Z",
  "github_readme_excerpt": "# gotests [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/cweill/gotests/blob/master/LICENSE) [![godoc](https://img.shields.io/badge/go-documentation-blue.svg)](https://godoc.org/github.com/cweill/gotests) [![Build Status](https://github.com/cweill/gotests/workflows/Go/badge.svg)](https://github.com/cweill/gotests/actions) [![Coverage Status](https://coveralls.io/repos/github/cweill/gotests/badge.svg?branch=master)](https://coveralls.io/github/cweill/gotests?branch=master) [![codecov](https://codecov.io/gh/cweill/gotests/branch/master/graph/badge.svg)](https://codecov.io/gh/cweill/gotests) [![Go Report Card](https://goreportcard.com/badge/github.com/cweill/gotests)](https://goreportcard.com/report/github.com/cweill/gotests)\n\n**gotests** is a powerful Go test generator that automatically creates [table-driven tests](https://go.dev/wiki/TableDrivenTests) from your source code. It analyzes function and method signatures to generate comprehensive test scaffolding, saving you time and ensuring consistency across your test suite.\n\n### Key Features\n\n- \ud83d\ude80 **Zero-config test generation** - Works out of the box with any Go project\n- \ud83c\udfaf **Smart test scaffolding** - Generates complete table-driven test structure with proper type handling\n- \ud83d\udd27 **Flexible filtering** - Generate tests for specific functions, exported functions, or entire packages\n- \ud83d\udce6 **Auto-imports** - Automatically adds required imports to test files\n- \ud83e\uddec **Full generics support** - Works seamlessly with Go 1.18+ type parameters\n- \ud83d\udd04 **Recursive generation** - Process entire directory trees with `./...` pattern\n- \ud83c\udfa8 **Custom templates** - Built-in support for testify and custom test templates\n- \u26a1 **Parallel subtests** - Optional parallel test execution support\n\n## Demo\n\nThe following shows `gotests` in action using the [official Sublime Text 3 plugin](https://github.com/cweill/GoTests-Sublime). Plugins also exist for [Emacs](https://github.com/damienlevin/GoTests-Emacs), also",
  "github_repo": "cweill/gotests",
  "github_stars": 5314,
  "github_topics": [
    "code-generator",
    "commandline",
    "go",
    "go-test",
    "go-testing",
    "golang",
    "golang-application",
    "golang-testing",
    "golang-tools",
    "gotests",
    "table-driven-test",
    "table-driven-testing",
    "test-driven-development",
    "test-generation",
    "testing",
    "testing-golang",
    "testing-tools"
  ],
  "homepage": "https://github.com/cweill/gotests",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 21,
  "installs_365d": 493,
  "installs_90d": 68,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "gotests",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 6700,
  "rank_365d": 5157,
  "rank_90d": 6522,
  "raw_hash": "1b4677e219bc9ec0",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/g/gotests.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "go"
  ],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.9.0",
  "versioned_formulae": [],
  "why_use_this": null
}