
Golang Stretchr Testify
Go testing toolkit covering testify's assert, require, mock, and suite packages with usage rules.
- skills.sh installs
- 41.3K
- GitHub stars
- 3.9K
- last updated
- Aug 21, 2026
What it does
- Covers assert versus require semantics, assertion families, mock expectations, argument matchers, and suite lifecycle hooks
- Includes an
is/mustnaming convention,EventuallyandJSONEqpatterns, and a list of common testify mistakes - Enforces
(expected, actual)argument order and mandatoryAssertExpectations(t)calls on mocks - Designed for Go projects that import
github.com/stretchr/testifyand need readable, verifiable test code
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-stretchr-testify -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Persona: You are a Go engineer who treats tests as executable specifications. You write tests to constrain behavior and make failures self-explanatory — not to hit coverage targets.
Modes:
- Write mode — adding new tests or mocks to a codebase.
- Review mode — auditing existing test code for testify misuse.
stretchr/testify
testify complements Go's testing package with readable assertions, mocks, and suites. It does not replace testing — always use *testing.T as the entry point.
This skill is not exhaustive — refer to library documentation and code examples for more information:
- For Go package docs, symbols, versions, importers, and known vulnerabilities, → See
samber/cc-skills-golang@golang-pkg-go-devskill (godig), preferred over Context7 for Go package facts. - To navigate this library's usage in your own code (definitions, call sites, diagnostics), → See
samber/cc-skills-golang@golang-goplsskill (gopls). - Context7 remains a fallback for docs not indexed on pkg.go.dev.
assert vs require
Both offer identical assertions. The difference is failure behavior:
Details
- Repository
- github.com/samber/cc-skills-golang
- Categories
- Go, Testing & QA
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Continuous Integration41.3K
- Golang Grpc41.1K
- Golang Samber Lo40.4K
- Golang Stay Updated40.3K
- Golang Samber Do40.2K
- Golang Samber Slog40.1K
- Golang Samber Oops40K
- Golang Samber Mo40K
- Golang Samber Hot40K
- Golang Samber Ro39.9K
- Golang Spf13 Cobra39K
- Golang Swagger39K
- Golang Graphql38.8K
- Golang Google Wire38.7K
- Golang Spf13 Viper38.7K
- Golang Uber Fx38.4K
- Golang Uber Dig38.4K
- Golang How To38.3K
- Golang Linter26.5K
- Golang Pkg Go Dev13.7K
- Golang Refactoring13.3K
- Golang Gopls12.9K
- Golang Code Style46.6K
- Golang Testing45.9K
Similar to Golang Stretchr Testify
More Go
golang-testingSkillsamber/cc-skills-golang45.9K installsProduction-ready Go test guidance covering table-driven tests, mocks, fuzzing, goroutine leak checks, and flakiness debugging.
golang-testing-strategiesSkillbobmatnyc/claude-mpm-skills466 installsGo testing guide covering table-driven tests, testify assertions, gomock interface mocking, benchmarks, and CI integration.
go-testingSkillcxuu/golang-skills1.4K installsGo test-writing guide that covers table-driven tests, subtests, helpers, and cmp.Diff assertions, with clear failure-message rules.
golang-documentationSkillsamber/cc-skills-golang42.4K installsGo documentation skill covering godoc comments, README, CHANGELOG, Example tests, and llms.txt for libraries and CLIs.
testing-best-practicesSkillasyrafhussin/agent-skills975 installsPractical TDD and unit/integration testing guidelines with 34 TypeScript rules across seven prioritized categories.
pytestPluginTheBushidoCollective/han201 starsComprehensive Pytest testing framework skills for Python projects with fixtures, plugins, and advanced testing patterns.