CodeBrowser / github / stretchr/testify
stretchr/testify
# A toolkit with common assertions and mocks that plays nicely with the standard library
$ git clone https://github.com/stretchr/testify.git
stars
26,093
forks
1,797
language
Go
license
MIT License
What is stretchr/testify?
Testify is a Go testing toolkit that provides convenient assertion functions and mocking utilities for writing unit tests. Developers use it to reduce boilerplate code when verifying test outcomes and stubbing dependencies, making test code more readable and maintainable compared to using only the standard library. It integrates seamlessly with Go's built-in testing package while offering features like suite support, assertions with helpful failure messages, and mock object generation.
Topics
#assertions #go #golang #mocking #testify #testing #toolkit
Activity
365 open issues · last updated Jul 21, 2026