Testing coverage
TDD and coverage standards for Engram. Trigger: When implementing behavior changes in any package.From its SKILL.md
npx -y skills add Gentleman-Programming/engram --skill testing-coverageAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its file declares
Copied from the file, not written here
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
0.9 KB, as published. Nobody here has run it
When to Use
Use this skill when:
- Adding new behavior
- Fixing a bug
- Refactoring logic with branch complexity
TDD Loop
- Write a failing test for the target behavior.
- Implement the smallest code to pass.
- Refactor while keeping tests green.
- 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.