# gotests を Homebrew, Nix でインストール

gotests のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install gotests
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## パッケージ情報

- **パッケージキー:** brew:gotests
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/gotests>
- **バージョン:** 1.9.0
- **ソース概要:** Automatically generate Go test boilerplate from your source code
- **ホームページ:** <https://github.com/cweill/gotests>
- **リポジトリ:** <https://github.com/cweill/gotests>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://github.com/cweill/gotests/archive/refs/tags/v1.9.0.tar.gz>
- **最終更新:** 2026-07-25T20:55:27-04:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- gotests (cli)
- gotests (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.9.0
- マネージャ更新日: 2026-07-25
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/cweill/gotests
- 検出された最新: v1.9.0 (最新)
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

- 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.

### ソース

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


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **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

## 他のパッケージマネージャ記録

- 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


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [gotestsum](https://pkg.so/ja/brew/gotestsum/) - Shares pkgdb curated category or tags: cli, developer-tools, go, golang, testing.
- [mockery](https://pkg.so/ja/brew/mockery/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [gup](https://pkg.so/ja/brew/gup/) - Shares pkgdb curated category or tags: cli, developer-tools, go, golang.
- [richgo](https://pkg.so/ja/brew/richgo/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [pict](https://pkg.so/ja/brew/pict/) - Shares pkgdb curated category or tags: cli, developer-tools, test-generation, testing.
- [thriftgo](https://pkg.so/ja/brew/thriftgo/) - Shares pkgdb curated category or tags: cli, code-generator, developer-tools, go.
- [htmltest](https://pkg.so/ja/brew/htmltest/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [counterfeiter](https://pkg.so/ja/brew/counterfeiter/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [ifacemaker](https://pkg.so/ja/brew/ifacemaker/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, generate.

## Combined YAML source

View the package source record on GitHub. [combined/gotests.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gotests.yml)


## ソース

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