Automic VaultAutomic Vault

brew

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

Additional install commands

macOS

Homebrewverified · 100%
brew install gotests

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#gotests

nixpkgs package indexes · pkgs/by-name/go/gotests/package.nix · source: api.github.com

overview

Package summary

Automatically generate Go test boilerplate from your source code

Commands and aliases

  • gotests

history

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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
gotestscliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.9.0
manager updated2026-06-13
local dataok
upstreamcurrent
latest detectedv1.9.0

https://github.com/cweill/gotests

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:gotests
Version1.9.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gotests
Homepagehttps://github.com/cweill/gotests
Repositoryhttps://github.com/cweill/gotests
Upstream docshttps://github.com/cweill/gotests#readme
LicenseApache-2.0
Source archivehttps://github.com/cweill/gotests/archive/refs/tags/v1.9.0.tar.gz
Last updated2026-06-13T23:34:57+02:00
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegotests
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

gotests

nix profile install nixpkgs#gotests
  • normalized package name match
  • Matched by: Gotests
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/go/gotests/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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