#1 Testify
Module testify is a set of packages that provide many tools for testifying that your code will behave as you intend.
Compare go testing libraries by maintenance, adoption, security, release activity, and Go ecosystem usage. Top packages in this group include Testify, moq, go-sqlmock.
Highest combined package health score.
Strongest maintenance signal in this category.
Highest adoption signal from stars, forks, and imported-by data.
Module testify is a set of packages that provide many tools for testifying that your code will behave as you intend.
Interface mocking tool for go generate
Package sqlmock is a mock library implementing sql driver.
:alarm_clock: :fire: A TCP proxy to simulate network and system conditions for chaos and resiliency testing
Package jsonassert is a Go test assertion library for verifying that two representations of JSON are semantically equal.
Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
Package dft (Docker For Testing) is a lightweight wrapper around docker based on the std lib.
A mock code autogenerator for Go
Package testcase is an opinionated testing framework.
HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
Open-source platform for creating safe, isolated production sandboxes for API, integration, and E2E testing.
Matcher/assertion library designed for expressive Go tests.
| Package | Health | Maintenance | Adoption | Security | Imported by |
|---|---|---|---|---|---|
| Testify | 95 | 95 | 100 | 92 | 15 |
| moq | 63 | 83 | 19 | 92 | 4 |
| go-sqlmock | 58 | 27 | 56 | 92 | 761 |
| toxiproxy | 56 | 48 | 32 | 92 | 30 |
| jsonassert | 54 | 48 | 25 | 92 | 11 |
| hoverfly | 52 | 90 | 7 | 35 | 0 |
| dft | 50 | 45 | 7 | 92 | 0 |
| mockery | 45 | 15 | 23 | 92 | 8 |
| testcase | 45 | 27 | 7 | 92 | 0 |
| gock | 44 | 48 | 5 | 70 | 0 |
| keploy | 44 | 48 | 7 | 70 | 0 |
| Gomega | 43 | 48 | 5 | 70 | 0 |