SKILL39.5K installs3.7K

Golang Stretchr Testify

Comprehensive guide to stretchr/testify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers. Apply when the codebase imports github.com/stretchr/testify.

Type
Skill
Author
samber
Category
Testing
GitHub stars
3.7K
Installs
39.5K
Last updated
November 1, 2026

Install

npx skills add https://github.com/samber/cc-skills-golang --skill golang-stretchr-testify

Use cases


Frequently Asked Questions

When should I use assert versus require?

The skill covers choosing between assert and require, along with the mock and suite packages.

Does it cover mocks?

Yes, it covers mock expectations, argument matchers, and call verification.

What advanced patterns are included?

It covers patterns like Eventually, JSONEq, and custom matchers.


About this skill

A deep guide to stretchr/testify covering the assert, require, mock, and suite packages. Use when writing Go tests with testify, creating mocks, setting up test suites, or deciding between assert and require. Covers mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually and JSONEq.

Summary written with AI assistance from the project's public description.


Categories


More from samber


Similar Skills