golang-stretchr-testify - Go testing with stretchr/testify
Provides guidance for writing and reviewing Go tests using stretchr/testify, including assertions, mocks, and suites.
Tags
Updated: 2026-09-17Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Choose between assert and require
- Define mock expectations
- Verify mock expectations
- Organize test suites
- Use advanced assertion helpers
Inputs
- Go test code
- Test failure details
- Testify mock definitions
Outputs
- Refactored Go test code
- Testify usage recommendations
Requirements
- Go environment
- stretchr/testify package
- testifylint tool
