Automated ranking

Best Go Testing Libraries

Compare go testing libraries by maintenance, adoption, security, release activity, and Go ecosystem usage. Top packages in this group include Testify, keploy, gock.

Best overall

Testify

Highest combined package health score.

95
Best maintained

Testify

Strongest maintenance signal in this category.

95
Most adopted

Testify

Highest adoption signal from stars, forks, and imported-by data.

100

Ranked Packages

12 packages

#1 Testify

Module testify is a set of packages that provide many tools for testifying that your code will behave as you intend.

Go Testing Libraries 26.0K stars 15 imported-by 100% confidence
95

#2 keploy

Open-source platform for creating safe, isolated production sandboxes for API, integration, and E2E testing.

Go Testing Libraries 17.6K stars 0 imported-by 45% confidence
86

#3 gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

Go Testing Libraries 2.2K stars 65 imported-by 95% confidence
80

#4 Gomega

Gomega is the Ginkgo BDD-style testing framework's preferred matcher library.

Go Testing Libraries 0 stars 11.8K imported-by 80% confidence
80

#5 testcase

Package testcase is an opinionated testing framework.

Go Testing Libraries 130 stars 0 imported-by 65% confidence
71

#6 hoverfly

Lightweight service virtualization/ API simulation / API mocking tool for developers and testers

Go Testing Libraries 0 stars 0 imported-by 60% confidence
59

#7 go-sqlmock

Package sqlmock is a mock library implementing sql driver.

Go Testing Libraries 0 stars 761 imported-by 80% confidence
58

#8 moq

Interface mocking tool for go generate

Go Testing Libraries 0 stars 0 imported-by 60% confidence
56

#9 dft

Lightweight, zero dependency docker containers for testing (or more).

Go Testing Libraries 0 stars 0 imported-by 45% confidence
50

#10 mockery

A mock code autogenerator for Go

Go Testing Libraries 0 stars 8 imported-by 80% confidence
45

#11 jsonassert

Package jsonassert is a Go test assertion library for verifying that two representations of JSON are semantically equal.

Go Testing Libraries 0 stars 0 imported-by 25% confidence
44

#12 toxiproxy

:alarm_clock: :fire: A TCP proxy to simulate network and system conditions for chaos and resiliency testing

Go Testing Libraries 0 stars 0 imported-by 25% confidence
44

Comparison Matrix

score dimensions
Package Health Maintenance Adoption Security Imported by
Testify 95 95 100 92 15
keploy 86 95 100 70 0
gock 80 38 100 92 65
Gomega 80 90 69 92 11.8K
testcase 71 83 52 70 0
hoverfly 59 90 7 70 0
go-sqlmock 58 27 56 92 761
moq 56 83 7 70 0
dft 50 48 7 92 0
mockery 45 15 23 92 8
jsonassert 44 48 7 70 0
toxiproxy 44 48 7 70 0

Related Comparisons

Go Testing Libraries

Testify vs Gomega

Compare health, maintenance, adoption, security, and release signals.

95

Testify vs gock

Compare health, maintenance, adoption, security, and release signals.

95

Gomega vs gock

Compare health, maintenance, adoption, security, and release signals.

80