grokkit/todo/queued/testgen.md
Greg Gauthier 6e3a52728e
All checks were successful
CI / Test (push) Successful in 30s
CI / Lint (push) Successful in 26s
CI / Build (push) Successful in 20s
chore(todo): complete feature suggestions TODO and queue individual tasks
- Update CI workflow runner from ubuntu-latest to ubuntu-gitea for auto-complete-todo.
- Move 3-new-feature-suggestions.md to completed/.
- Create queued TODOs for testgen, changelog, and profile features.
2026-03-02 19:33:34 +00:00

679 B

grokkit testgen [path...]

Description: Generate comprehensive unit tests for Go files/packages using AI analysis of source code.

Benefits:

  • Boost test coverage from current ~72% baseline automatically.
  • Enforces modern table-driven tests with t.Parallel() matching codebase style (e.g., internal/version/version_test.go).

High-level implementation:

  • Extract funcs/structs via go/ast or prompt with code snippets.
  • Prompt Grok: "Generate table-driven tests for this Go code."
  • Output *_test.go, create .bak, preview/apply like edit.
  • Verify: go test -v ./... post-generation.

CLI example:

grokkit testgen internal/grok/client.go