19 best Go Unit Testing libraries in 2024
by marketing.admin@openweaver.com Updated: Mar 10, 2023
Guide Kit
Unit testing is a component of test-driven development (TDD), a pragmatic methodology that takes a meticulous approach to build a product by means of continual testing and revision. In TDD, test cases are initially created by the developer before they start developing their application. This method of test can be applied virtually to every level of software testing: unit, integration, system and acceptance. In this list, we've rounded up 19 good Open Source libraries that you can use in your projects now. Top libraries include goreporter - Golang tool that does static analysis, unit testing, code review; gomonkey - make monkey patching in unit tests easy; keploy - No code API testing platform Create unit tests and data mocks from API calls.
goreporterby 360EntSecGroup-Skylar
A Golang tool that does static analysis, unit testing, code review and generate code quality report.
goreporterby 360EntSecGroup-Skylar
Go 2867 Version:version3.0.2 License: Permissive (Apache-2.0)
gomonkeyby agiledragon
gomonkey is a library to make monkey patching in unit tests easy
gomonkeyby agiledragon
Go 1542 Version:v2.10.0 License: Permissive (MIT)
keployby keploy
Test generation for Developers. Generate tests and stubs for your application that actually works!
keployby keploy
Go 2002 Version:v0.9.1 License: Permissive (Apache-2.0)
test2docby adams-sarah
Generate documentation for your REST/HTTP API from your Go unit tests
test2docby adams-sarah
Go 330 Version:Current License: Permissive (MIT)
gostubby prashantv
gostub is a library to make stubbing in unit tests easy
gostubby prashantv
Go 210 Version:v1.1.0 License: Permissive (MIT)
redigomockby rafaeljusto
Easy way to unit test projects using redigo library (Redis client in go)
redigomockby rafaeljusto
Go 197 Version:v2.1 License: Strong Copyleft (GPL-2.0)
trans-dslby agiledragon
a transaction model framework, seems simple but powerful
trans-dslby agiledragon
Go 59 Version:Current License: Permissive (MIT)
autobldby prashantv
Utility to automatically recompile your server application when changes are made to your source code.
autobldby prashantv
Go 41 Version:Current License: Strong Copyleft (GPL-2.0)
ddd-sample-in-golangby agiledragon
ddd-sample-in-golangby agiledragon
Go 25 Version:Current License: Permissive (MIT)
go-gender-statsby adams-sarah
Pull golang contributors + gophers slack members, predict gender of each first name, print gender stats
go-gender-statsby adams-sarah
Go 12 Version:Current License: Permissive (MIT)
etceteraby rafaeljusto
etcd client that uses a tagged struct to save and load values
etceteraby rafaeljusto
Go 10 Version:v0.1.0 License: Permissive (MIT)
example-url-shortenerby keploy
Sample application to understand keploy integration
example-url-shortenerby keploy
Go 3 Version:Current License: Permissive (Apache-2.0)
protectmemby prashantv
A Golang library to allocate memory that can have access protection changed after allocation
protectmemby prashantv
Go 2 Version:Current License: Permissive (MIT)
paginationby muhlemmer
Pagination is a small Go library for setting up a range with data for use in a template.
paginationby muhlemmer
Go 2 Version:V0.1 License: Permissive (BSD-3-Clause)
strong-passwordby agiledragon
strong-passwordby agiledragon
Go 1 Version:Current License: Permissive (MIT)
faucet-pipeline-goby REABMAX
Go integration for faucet-pipeline
faucet-pipeline-goby REABMAX
Go 1 Version:v1.0.0 License: Permissive (Apache-2.0)