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 Gomega, mockery, Testify.

Best overall

Gomega

Highest combined package health score.

96
Best maintained

Gomega

Strongest maintenance signal in this category.

95
Most adopted

Gomega

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

100

Ranked Packages

12 packages

#1 Gomega

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

Go Testing Libraries 2.3K stars 11.8K imported-by 100% confidence
96

#2 mockery

A mock code autogenerator for Go

Go Testing Libraries 7.1K stars 8 imported-by 100% confidence
95

#3 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

#4 toxiproxy

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

Go Testing Libraries 12.1K stars 30 imported-by 100% confidence
93

#5 keploy

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

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

#6 hoverfly

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

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

#7 moq

Interface mocking tool for go generate

Go Testing Libraries 0 stars 4 imported-by 80% confidence
63

#8 go-sqlmock

Package sqlmock is a mock library implementing sql driver.

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

#9 jsonassert

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

Go Testing Libraries 0 stars 11 imported-by 70% confidence
51

#10 dft

Package dft (Docker For Testing) is a lightweight wrapper around docker based on the std lib.

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

#11 testcase

Idiomatic testing framework for Behavior Driven Development.

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

#12 gock

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

Go Testing Libraries 0 stars 65 imported-by 75% confidence
48

Comparison Matrix

score dimensions
Package Health Maintenance Adoption Security Imported by
Gomega 96 95 100 92 11.8K
mockery 95 95 100 92 8
Testify 95 95 100 92 15
toxiproxy 93 88 100 92 30
keploy 86 95 100 70 0
hoverfly 80 95 84 35 0
moq 63 83 19 92 4
go-sqlmock 58 27 56 92 761
jsonassert 51 45 25 70 11
dft 50 45 7 92 0
testcase 50 48 7 92 0
gock 48 15 31 92 65

Related Comparisons

Go Testing Libraries

Testify vs Gomega

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

96

Testify vs mockery

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

95

Testify vs hoverfly

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

95

Gomega vs mockery

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

96

mockery vs hoverfly

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

95

Gomega vs hoverfly

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

96