Help us shape the future of Go! Take the 2026 Go Developer Survey

gen_testing_docs

command
v3.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Command gen_testing_docs regenerates the managed test metrics section in docs/development/testing/testing.md.

It discovers Go packages, counts Test* functions by parsing _test.go files, runs unit-test coverage for ./internal/... and ./cmd/..., and replaces the generated Markdown block in the testing reference document.

A check never runs coverage unless it is asked to. The coverage pass is what takes the minutes, and the numbers it produces depend on the machine as much as on the tree, so --check carries the values already recorded in the document forward and holds everything a checkout determines. Measuring under a check is available and explicit: --check -skip-coverage=false.

Usage:

go run ./cmd/gen_testing_docs/
go run ./cmd/gen_testing_docs/ --check
go run ./cmd/gen_testing_docs/ --check -skip-coverage=false

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL