Testify VS go-cmp

Compare Testify vs go-cmp and see what are their differences.

Testify

A toolkit with common assertions and mocks that plays nicely with the standard library (by stretchr)

go-cmp

Package for comparing Go values in tests (by google)
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Testify go-cmp
73 7
24,723 4,426
1.0% 1.0%
8.5 3.6
12 days ago 4 months ago
Go Go
MIT License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Testify

Posts with mentions or reviews of Testify. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-05-18.

go-cmp

Posts with mentions or reviews of go-cmp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-03.

What are some alternatives?

When comparing Testify and go-cmp you can also consider the following projects:

ginkgo - A Modern Testing Framework for Go

go-testdeep - Extremely flexible golang deep comparison, extends the go testing package, tests HTTP APIs and provides tests suite

gomega - Ginkgo's Preferred Matcher Library

gotest.tools - A collection of packages to augment the go testing package and support common patterns.

realize - Realize is the #1 Golang Task Runner which enhance your workflow by automating the most common tasks and using the best performing Golang live reloading.

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you know that Go is
the 4th most popular programming language
based on number of references?