go-testing

Installation
SKILL.md

Go Testing

Pick the assertion stack by what your project allows:

  • Dependency-free project — stdlib testing only. No third-party assertions.
  • Project that allows deps — use go-testdeep. Composable operators (td.Cmp, td.Struct, td.Smuggle, td.Between, …) produce precise diffs.
  • Never use testify. Vague messages, the assert/require split, and interface{} comparisons are worse than either alternative.

References: references/testing.md for the carved style guide, references/perf-and-parallel.md for parallel tests, benchmarks, and the race detector.

Table-driven with named cases

Related skills
Installs
2
Repository
marsolab/skills
First Seen
2 days ago