skills/gentleman-programming/engram/engram-testing-coverage

engram-testing-coverage

SKILL.md

When to Use

Use this skill when:

  • Adding new behavior
  • Fixing a bug
  • Refactoring logic with branch complexity

TDD Loop

  1. Write a failing test for the target behavior.
  2. Implement the smallest code to pass.
  3. Refactor while keeping tests green.
  4. Add edge/error-path tests before closing.

Coverage Rules

  • Cover happy path + error paths + edge cases.
  • Prefer deterministic tests over flaky integration paths.
  • Add seams only when branches are impossible to trigger naturally.
  • Keep runtime behavior unchanged when adding seams.

Validation Commands

Run:

go test ./...
go test -cover ./...

Report package coverage and total coverage in the PR.

Weekly Installs
17
GitHub Stars
1.3K
First Seen
Feb 23, 2026
Installed on
opencode17
gemini-cli16
antigravity16
github-copilot16
codex16
amp16