Tech debt: extend snapshot testing beyond the golden tree
- Dominant language
- Go
- Stars
- 0
- Forks
- 0
- Avg merge
- 3h 18m
- Merged PRs (30d)
- 26
Description
Tracked in `roadmap.md` *Tech debts* as: **"snapshot testing"**
The repo already has one snapshot test that works well: `cmd/scaffold/copy_golden_test.go` (`TestCopy_GoldenSnapshot`) diffs `scaffold.Copy()` output byte-for-byte against `golden/`.
This note is about extending that approach — candidates include the generated OpenAPI document, `wire_gen.go`, and generator output from the not-yet-built `gonext generate *` commands, so template drift is caught the same way scaffold drift already is.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with cmd/scaffold/copy_golden_test.go and TestCopy_GoldenSnapshot to understand the existing byte-for-byte golden comparison. Review roadmap.md and identify which generated outputs are ready to snapshot, then add coverage so changes to those outputs are detected; done means the selected snapshots run reliably and catch template drift.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, openapi
- Domain
- testing, tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100