# Install gotests with Homebrew, Nix

Automatically generate Go test boilerplate from your source code. Version 1.9.0 via Homebrew; verified 2026-06-13.

## Install

```sh
sudo av install brew:gotests
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gotests
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gotests
```

  Evidence: nixpkgs package indexes: pkgs/by-name/go/gotests/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:gotests
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gotests>
- **Version:** 1.9.0
- **Source summary:** Automatically generate Go test boilerplate from your source code
- **Homepage:** <https://github.com/cweill/gotests>
- **Repository:** <https://github.com/cweill/gotests>
- **Upstream docs:** <https://github.com/cweill/gotests#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/cweill/gotests/archive/refs/tags/v1.9.0.tar.gz>
- **Last updated:** 2026-06-13T23:34:57+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gotests (cli)
- gotests (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.9.0
- Package-manager updated: 2026-06-13
- Local data: ok
- Upstream repository: https://github.com/cweill/gotests
- Upstream latest detected: v1.9.0 (current)
## Project history and usage

gotests is a Go test-boilerplate generator. It analyzes functions and methods and emits table-driven test scaffolding, fitting the Go community's preference for generated but editable test code.

### Project history

The repository was created in January 2016 and published early 1.x releases in 2016. The README describes the tool as a generator for table-driven tests and documents command-line filters for exported functions, named tests, recursive package traversal, templates, and writing generated tests back to files.

### Adoption history

The README highlights integrations with editor and IDE workflows, including Sublime Text, Emacs, Vim, Atom, Visual Studio Code, and GoLand. That adoption pattern made gotests useful as both a terminal command and an editor action for quickly producing test skeletons.

### How it is used

Typical usage is to run gotests against files or packages, optionally selecting specific functions, exported APIs, custom templates, or testify-style output. Later releases added full Go generics support and an optional local-LLM mode through Ollama for generating test cases.

### Why package nerds care

gotests is the sort of package that shows how Go tooling tends to compose: it is not a test framework, but a small generator that feeds ordinary go test workflows and leaves normal Go source behind.

### Timeline

- 2016: Repository created and v1.0 published.
- 2020: v1.6.0 release published.
- 2025: v1.8.0 release described full Go generics support.
- 2025: v1.9.0 release described local AI-powered test generation through Ollama.

### Related projects

- Go's table-driven test idiom is the coding style gotests automates.
- Go editor integrations such as VS Code Go and Vim plugins provide interactive entry points for generated tests.

### Sources

- <https://formulae.brew.sh/formula/gotests>
- <https://github.com/cweill/gotests>
- <https://github.com/cweill/gotests#readme>
- <https://github.com/cweill/gotests/releases>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gotests
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - gotests: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gotests/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [counterfeiter](https://www.automicvault.com/pkg/brew/counterfeiter/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, go, testing.
- [mockery](https://www.automicvault.com/pkg/brew/mockery/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, go, testing.
- [gotestsum](https://www.automicvault.com/pkg/brew/gotestsum/) - Shares av.db curated category or tags: cli, developer-tools, go, golang, testing.
- [mockolo](https://www.automicvault.com/pkg/brew/mockolo/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, testing.
- [fake-gcs-server](https://www.automicvault.com/pkg/brew/fake-gcs-server/) - Shares av.db curated category or tags: cli, developer-tools, go, testing.
- [gor](https://www.automicvault.com/pkg/brew/gor/) - Shares av.db curated category or tags: cli, developer-tools, go, testing.
- [h2spec](https://www.automicvault.com/pkg/brew/h2spec/) - Shares av.db curated category or tags: cli, developer-tools, go, testing.
- [htmltest](https://www.automicvault.com/pkg/brew/htmltest/) - Shares av.db curated category or tags: cli, developer-tools, go, testing.
- [ifacemaker](https://www.automicvault.com/pkg/brew/ifacemaker/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/gotests.yml](https://github.com/automic-vault/db/blob/main/combined/gotests.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
