Golang Stretchr Testify (Grade A) logo

Golang Stretchr Testify (Grade A)Security-tested development skill for Claude AI. Grade A. Comprehensive guide to stretchr/testify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

This is a comprehensive guide to stretchr/testify for Golang testing. It covers assert, require, mock, and suite packages in depth. The guide is designed for Go engineers who treat tests as executable specifications and use testify to complement Go's testing package with readable assertions, mocks, and suites. It provides information on assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers.

Key features

  • Assertions (assert, require)
  • Mock expectations
  • Argument matchers
  • Call verification
  • Suite lifecycle management

Pricing

Model
Free
Category
Skills
Rating
No reviews yet

Use cases

Writing unit tests with readable assertions

Use testify's assert and require packages to write clear and concise unit tests for Go applications.

Creating mocks for dependencies

Utilize testify's mock package to create test doubles for dependencies and improve test isolation.

Pros & Cons

Pros

  • Provides in-depth coverage of testify packages
  • Covers assert, require, mock, and suite packages
  • Includes advanced patterns like Eventually and custom matchers
  • Designed for Go engineers who prioritize test readability and maintainability

Cons

  • Not an exhaustive guide, requires additional reference to library documentation
  • Assumes familiarity with Go's testing package and testify basics

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

How do I report a problem with a skill?

Skills are maintained by their respective authors. Visit the skill's GitHub repository and open an issue there. You can find the repository link on each skill's detail page.

Asked by Paulo Cardoso · Apr 13, 2026

Is this guide exhaustive?

No, this guide is not exhaustive and requires additional reference to library documentation. It assumes familiarity with Go's testing package and testify basics.

Asked by Nour Khalil · Apr 8, 2026

Can I opt out of telemetry?

Yes. You can disable telemetry when using the add-skills CLI. See the CLI documentation for configuration options.

Asked by Jarrah Whitlock · Apr 5, 2026

What are the key features of this tool?

The key features include assertions, mock expectations, argument matchers, call verification, and suite lifecycle management.

Asked by Xavier Costa · Mar 27, 2026

Is any personal data collected?

No. The telemetry is completely anonymous and only tracks aggregate skill installation counts. No personal information, usage patterns, or identifying data is collected or stored.

Asked by Miriam Cohen · Mar 8, 2026

Ask a question

Skills alternatives

Manage Headers (Grade A) logo
Manage Headers (Grade A)Skills

Security-tested development skill for Claude AI. Grade A. Inspects and configures the security headers a Power Pages site sends to browsers — Content Security Policy, frame and clickjacking protection

(0)
Free
Using Git Worktrees (Grade A) logo
Using Git Worktrees (Grade A)Skills

Security-tested data-ai skill for Claude AI. Grade A. Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktre

(0)
Free
Ga4 Bigquery Schema (Grade A) logo
Ga4 Bigquery Schema (Grade A)Skills

Security-tested data-ai skill for Claude AI. Grade A. GA4 BigQuery Export Schema Reference — complete field reference, nested structures, query patterns, and performance tips

(0)
Free
Meta Capi (Grade A) logo
Meta Capi (Grade A)Skills

Security-tested data-ai skill for Claude AI. Grade A. Meta Conversions API (CAPI) Setup Reference — architecture, event types, customer information hashing, deduplication, implementation examples, AEM

(0)
Free
Callees (Grade A) logo
Callees (Grade A)Skills

Security-tested development skill for Claude AI. Grade A. Lista o que uma funcao/metodo chama (call graph direto)

(0)
Free
Test Module Name (Grade A) logo
Test Module Name (Grade A)Skills

Security-tested data-ai skill for Claude AI. Grade A. Name Haskell test modules after the module under test with a Spec suffix in the same namespace. Use when writing or reviewing Haskell test module

(0)
Free
Board Of Directors (Grade A) logo
Board Of Directors (Grade A)Skills

Security-tested data-ai skill for Claude AI. Grade A. Simulate a 5-member expert board deliberation for major decisions. Use when evaluating plans, architecture choices, feature designs, or any decisi

(0)
Free
Advpl Mvc Avancado (Grade A) logo
Advpl Mvc Avancado (Grade A)Skills

Security-tested development skill for Claude AI. Grade A. MVC avançado via PE (Pontos de Entrada) — adicionar grids customizadas em telas MVC padrão (CNTA300/MATA070/MATA440/MATA460/FINA040 via *STRU)

(0)
Free