
Description
golang-stretchr-testify is an agent skill from the samber cc-skills-golang collection for writing Go tests with the stretchr/testify library. Testify adds readable assertions, mocks and suites on top of Go's testing package, and the skill is clear that it does not replace testing: tests still start from a *testing.T. Its persona is a Go engineer who treats tests as executable specifications, written to constrain behaviour and to make failures self-explanatory rather than to reach a coverage target. The skill has two modes. Write mode adds new tests or mocks to a codebase, and review mode audits existing test code for misuse of testify. A central topic is the difference between assert and require: assert records a failure and lets the test continue, while require stops the test immediately, which matters when later checks depend on earlier ones. The skill covers the assert, require, mock and suite packages in depth. It points to the golang-pkg-go-dev skill for package documentation, versions and known vulnerabilities, and to the golang-gopls skill for navigating definitions and call sites in code. The skill is useful for developers who want assertion-heavy tests that read clearly and fail usefully. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection, and its security audits all pass. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-stretchr-testify.…
Highlights
- assert and require packages
- Mocks and suites
- Write and review modes
- Tests start from *testing.T
- Pointers to package documentation tools
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-stretchr-testify.
People also visit

golang-testing
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing
golang-stretchr-testify FAQ
What does this skill cover?
Writing Go tests with stretchr/testify: assert, require, mock and suite packages.
What is the difference between assert and require?
The skill says assert records a failure and continues, while require stops the test, which matters when later checks depend on earlier ones.
Does testify replace the testing package?
No. Tests still start from *testing.T, and testify complements it.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-stretchr-testify.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
How popular is it?
The page shows about 37.6K installs, and the cc-skills-golang repository has 3.5K GitHub stars.
What are the best golang-stretchr-testify alternatives?
Popular alternatives to golang-stretchr-testify include golang-testing, golang-testing and go-testing. See all golang-stretchr-testify alternatives








