# cweill/gotests

Automatically generate Go test boilerplate from your source code.

Repository: https://github.com/cweill/gotests
Canonical: https://ross.abutalabs.com/products/gotests
Language: Go
License: Apache-2.0
License Family: permissive
Topics: golang-tools, testing, code-generator, go, golang, golang-application, testing-tools, test-driven-development, test-generation, table-driven-test, go-test, commandline, gotests, go-testing, golang-testing, testing-golang, table-driven-testing
Last push: 2025-10-30T18:15:01+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 49, release rhythm 54, longevity 100
- inputs: {"age_days": 3879, "days_push": 307, "days_rel": 309, "gap_med": 0.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5330, forks 351 (observed 2026-08-28T04:09:15.710514+00:00)

## What it is
gotests is a Go command-line tool that automatically generates table-driven test boilerplate from source code by analyzing function and method signatures. It supports generics, custom templates (including testify), and integrates with editors like VS Code, GoLand, Vim, and Emacs.

## Use cases
- generate go test boilerplate for my functions
- create table-driven tests automatically in go
- scaffold unit tests from function signatures
- generate test files for an entire go package
- generate testify-style tests for go code
- avoid writing repetitive test stubs by hand

## When to choose
- you write Go and want to skip repetitive test scaffolding
- you want consistent table-driven test structure across a codebase
- you use an editor plugin workflow for generating tests on demand

## When to avoid
- you need fully written assertions and test logic, not just scaffolding
- your project is not in Go
- you prefer behavior/property-based test generation tools

## Facets
- artifact type: cli-tool
- maturity: active
- function: testing, cli, developer-tools
- domain: testing, developer-tools, programming-languages
- platform: go, cli, cross-platform
- tags: test-generation, table-driven-tests, go-testing, boilerplate-generator, editor-plugins, code-generation

## Member repositories
- cweill/gotests (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:15.710514+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:58:53.135107+00:00, confidence not recorded.
  - readme: https://github.com/cweill/gotests (fetched 2026-08-28T04:09:15.710514+00:00, sha 5b6ad2689ad7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
