Golang testify: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
|} | |} | ||
</blockquote><!-- Documentation --> | </blockquote><!-- Documentation --> | ||
= Install = | |||
<blockquote> | |||
<syntaxhighlight lang="bash"> | |||
go get github.com/stretchr/testify | |||
</syntaxhighlight> | |||
</blockquote><!-- Install --> | |||
= Usage = | |||
<blockquote> | |||
</blockquote><!-- Usage --> |
Revision as of 00:24, 12 December 2022
Testify is a 3rd party test library for golang.
It includes assertions and mocks.
It's functionality is modular, opt in to the features you are interested in.
- assert
- require
- mock
- suite
Documentation
github https://github.com/stretchr/testify
Install
go get github.com/stretchr/testify