pkg.soopen package index

brew / rank 5115

Install gotests with Homebrew, Nix

Automatically generate Go test boilerplate from your source code. Version 1.9.0 via Homebrew; verified 2026-07-25. Also installable with nix: nix profile install nixpkgs#gotests.

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 bottle metadata was recorded.

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
gotestsexecutableindexed executableDiscovered from the local executable index.

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-08-03
manager version1.9.0
manager updated2026-07-25
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:gotests
Version1.9.0
Package managerHomebrew
Homepagehttps://github.com/cweill/gotests
Repositoryhttps://github.com/cweill/gotests
Last updated2026-07-25T20:55:27-04:00
Pulseupdated
Bottlenot recorded
Servicenone declared

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
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation