go-test-generator

Community

Automate Go tests with patterns that scale.

Authortaku-o
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Go のユニットテスト作成は繰り返しになりがちです。テーブル駆動テストや testify/assert の一貫性を保つコードパターンを提供し、品質と生産性を向上させます。

Core Features & Use Cases

  • テーブル駆動テスト: さまざまなケースを一つのテンプレートで網羅的に生成
  • Testify の活用: assert と require の使い分けを実装
  • 参照実例: 既存のリポジトリのテストパターンを標準化して再利用
  • 例: UserRepository の Create/GetByID などのテストを自動生成

Quick Start

抽出した関数やメソッドのテストを自動生成する際に、対象の Go ファイルを指示して「テストコードを生成して」と依頼すると、_test.go ファイル群を生成します。 例えば server/internal/repository/user_repository.go のテストを作成します。

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-test-generator
Download link: https://github.com/taku-o/go-webdb-template/archive/main.zip#go-test-generator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.