go-test-engineering
Installation
SKILL.md
Go Test Engineering
Make Go tests trustworthy, strict, and maintainable. Optimize for their value as behavioral
constraints — not for test count, coverage percentage, or a green go test ./... at any cost.
Principles
- Correctness outranks pass rate.
- Establish the intended contract before judging either the test or the implementation.
- Fix or delete an incorrect, obsolete, duplicate, or meaningless test.
- Fix production code when a sound test exposes an implementation defect.
- Never weaken an assertion merely to accommodate current behavior.
- Test observable behavior and owned contracts, not incidental implementation details.
- Prefer the standard
testingpackage and the smallest useful test design. - Never add a test solely to increase coverage.
- Use a plain unit test whenever one can constrain the behavior. A golden test is admitted only when the output depends on an external process or environment (
protoc,buf,wire,go generate, loaded packages) and its exact bytes are a reviewed contract.