kandi background
Explore Kits

19 best Go Unit Testing libraries in 2022

by Open Weaver kits ✔ Updated: Apr 6, 2022

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

Go star image 2867 Version:version3.0.2

License: Permissive (Apache-2.0)

A Golang tool that does static analysis, unit testing, code review and generate code quality report.

Support
Quality
Security
License
Reuse

goreporterby 360EntSecGroup-Skylar

Go star image 2867 Version:version3.0.2 License: Permissive (Apache-2.0)

A Golang tool that does static analysis, unit testing, code review and generate code quality report.
Support
Quality
Security
License
Reuse

gomonkeyby agiledragon

Go star image 994 Version:v2.7.0

License: Permissive (MIT)

gomonkey is a library to make monkey patching in unit tests easy

Support
Quality
Security
License
Reuse

gomonkeyby agiledragon

Go star image 994 Version:v2.7.0 License: Permissive (MIT)

gomonkey is a library to make monkey patching in unit tests easy
Support
Quality
Security
License
Reuse

keployby keploy

Go star image 1500 Version:v0.7.18

License: Permissive (Apache-2.0)

Testing for Developers. Toolkit that creates test-cases and data mocks from API calls, DB queries, etc.

Support
Quality
Security
License
Reuse

keployby keploy

Go star image 1500 Version:v0.7.18 License: Permissive (Apache-2.0)

Testing for Developers. Toolkit that creates test-cases and data mocks from API calls, DB queries, etc.
Support
Quality
Security
License
Reuse

test2docby adams-sarah

Go star image 330 Version:Current

License: Permissive (MIT)

Generate documentation for your REST/HTTP API from your Go unit tests

Support
Quality
Security
License
Reuse

test2docby adams-sarah

Go star image 330 Version:Current License: Permissive (MIT)

Generate documentation for your REST/HTTP API from your Go unit tests
Support
Quality
Security
License
Reuse

gostubby prashantv

Go star image 210 Version:v1.1.0

License: Permissive (MIT)

gostub is a library to make stubbing in unit tests easy

Support
Quality
Security
License
Reuse

gostubby prashantv

Go star image 210 Version:v1.1.0 License: Permissive (MIT)

gostub is a library to make stubbing in unit tests easy
Support
Quality
Security
License
Reuse

redigomockby rafaeljusto

Go star image 197 Version:v2.1

License: Strong Copyleft (GPL-2.0)

Easy way to unit test projects using redigo library (Redis client in go)

Support
Quality
Security
License
Reuse

redigomockby rafaeljusto

Go star image 197 Version:v2.1 License: Strong Copyleft (GPL-2.0)

Easy way to unit test projects using redigo library (Redis client in go)
Support
Quality
Security
License
Reuse

trans-dslby agiledragon

Go star image 59 Version:Current

License: Permissive (MIT)

a transaction model framework, seems simple but powerful

Support
Quality
Security
License
Reuse

trans-dslby agiledragon

Go star image 59 Version:Current License: Permissive (MIT)

a transaction model framework, seems simple but powerful
Support
Quality
Security
License
Reuse

autobldby prashantv

Go star image 41 Version:Current

License: Strong Copyleft (GPL-2.0)

Utility to automatically recompile your server application when changes are made to your source code.

Support
Quality
Security
License
Reuse

autobldby prashantv

Go star image 41 Version:Current License: Strong Copyleft (GPL-2.0)

Utility to automatically recompile your server application when changes are made to your source code.
Support
Quality
Security
License
Reuse

go-sdkby keploy

Go star image 33 Version:v0.7.8

License: Permissive (Apache-2.0)

Client SDK for Keploy API Platform. No Code API testing using production traffic

Support
Quality
Security
License
Reuse

go-sdkby keploy

Go star image 33 Version:v0.7.8 License: Permissive (Apache-2.0)

Client SDK for Keploy API Platform. No Code API testing using production traffic
Support
Quality
Security
License
Reuse

ddd-sample-in-golangby agiledragon

Go star image 25 Version:Current

License: Permissive (MIT)

Support
Quality
Security
License
Reuse

ddd-sample-in-golangby agiledragon

Go star image 25 Version:Current License: Permissive (MIT)

Support
Quality
Security
License
Reuse

go-gender-statsby adams-sarah

Go star image 12 Version:Current

License: Permissive (MIT)

Pull golang contributors + gophers slack members, predict gender of each first name, print gender stats

Support
Quality
Security
License
Reuse

go-gender-statsby adams-sarah

Go star image 12 Version:Current License: Permissive (MIT)

Pull golang contributors + gophers slack members, predict gender of each first name, print gender stats
Support
Quality
Security
License
Reuse

etceteraby rafaeljusto

Go star image 10 Version:v0.1.0

License: Permissive (MIT)

etcd client that uses a tagged struct to save and load values

Support
Quality
Security
License
Reuse

etceteraby rafaeljusto

Go star image 10 Version:v0.1.0 License: Permissive (MIT)

etcd client that uses a tagged struct to save and load values
Support
Quality
Security
License
Reuse

example-url-shortenerby keploy

Go star image 3 Version:Current

License: Permissive (Apache-2.0)

Sample application to understand keploy integration

Support
Quality
Security
License
Reuse

example-url-shortenerby keploy

Go star image 3 Version:Current License: Permissive (Apache-2.0)

Sample application to understand keploy integration
Support
Quality
Security
License
Reuse

protectmemby prashantv

Go star image 2 Version:Current

License: Permissive (MIT)

A Golang library to allocate memory that can have access protection changed after allocation

Support
Quality
Security
License
Reuse

protectmemby prashantv

Go star image 2 Version:Current License: Permissive (MIT)

A Golang library to allocate memory that can have access protection changed after allocation
Support
Quality
Security
License
Reuse

gostubby mokiat

Go star image 2 Version:v1.3.0

License: Permissive (Apache-2.0)

Stubbing framework for the Go Language

Support
Quality
Security
License
Reuse

gostubby mokiat

Go star image 2 Version:v1.3.0 License: Permissive (Apache-2.0)

Stubbing framework for the Go Language
Support
Quality
Security
License
Reuse

paginationby muhlemmer

Go star image 2 Version:V0.1

License: Permissive (BSD-3-Clause)

Pagination is a small Go library for setting up a range with data for use in a template.

Support
Quality
Security
License
Reuse

paginationby muhlemmer

Go star image 2 Version:V0.1 License: Permissive (BSD-3-Clause)

Pagination is a small Go library for setting up a range with data for use in a template.
Support
Quality
Security
License
Reuse

strong-passwordby agiledragon

Go star image 1 Version:Current

License: Permissive (MIT)

Support
Quality
Security
License
Reuse

strong-passwordby agiledragon

Go star image 1 Version:Current License: Permissive (MIT)

Support
Quality
Security
License
Reuse

sample-goby keploy

Go star image 1 Version:Current

License: Permissive (Apache-2.0)

Keploy Go SDK samples

Support
Quality
Security
License
Reuse

sample-goby keploy

Go star image 1 Version:Current License: Permissive (Apache-2.0)

Keploy Go SDK samples
Support
Quality
Security
License
Reuse

faucet-pipeline-goby REABMAX

Go star image 1 Version:v1.0.0

License: Permissive (Apache-2.0)

Go integration for faucet-pipeline

Support
Quality
Security
License
Reuse

faucet-pipeline-goby REABMAX

Go star image 1 Version:v1.0.0 License: Permissive (Apache-2.0)

Go integration for faucet-pipeline
Support
Quality
Security
License
Reuse

See similar Kits and Libraries

Testing
Testing