Testing Go Libraries Ranking
Libraries for testing codebases and generating test data.
94 repositories, updated daily.
- Sacred extension to the standard go testing package.
- Generate Testcase and Data Mocks from API calls automatically.
- a way to drive/test Chrome, Safari, Edge, Android Webviews, and other browsers supporting the Chrome Debugging Protocol.
- A Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The clean, easy-to-use API enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.
- browser automation library to control Chromium, Firefox and WebKit with a single API.
- Concise, declarative, and easy to use end-to-end HTTP and REST API testing.
- HTTP(S) proxy for recording and simulating REST/SOAP APIs with extensible middleware and easy-to-use CLI.
matryer/moq
- Utility that generates a struct from any interface. The struct can be used in test code as a mock of the interface.
- Easy mocking of HTTP responses from external resources.
- integration testing with real dependencies (database, cache, even Kubernetes or AWS) running in Docker, without mocks.
- Record and replay your HTTP interactions for fast, deterministic and accurate tests.
- CLI tool for summarizing go test output. Pipe friendly. Compatible with go test flags.
- A helper for Rails' like test fixtures to test database applications.
- Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test.
- Tool for generating self-contained mock objects.
- An implementation of [failpoints](https://www.freebsd.org/cgi/man.cgi?query=fail) for Golang.
- HTTP testing and debugging tool with various endpoints for client testing.
mafredri/cdp
- Type-safe bindings for the Chrome Debugging Protocol that can be used with browsers or other debug targets that implement it.
h2non/baloo
- Expressive and versatile end-to-end HTTP API testing made easy.
- Single transaction based database driver mainly for testing purposes.
- A collection of packages to augment the go testing package and support common patterns.
- Extremely flexible golang deep comparison, extends the go testing package.
- Full-featured test framework with nice colorized output.
- Simple snapshot testing addon for your test framework.
- Tool that reports coverage of files below set threshold.
- Tool for testing cli applications on windows, linux and osx.
- Tool to generate fake interface implementations for tests.
- HTTP mock for Golang: record and replay HTTP interactions for offline testing.
- Clean database for testing purpose, inspired by `database_cleaner` in Ruby.
- Package for verifying that your JSON payloads are serialized correctly.
- Plugin-based testing framework with suites, parallel tests, hooks and parametrization. Inspired by Pytest.
- Idiomatic testing framework for Behavior Driven Development.
- Websocket client for unit-testing a websocket http.Handler.
- Stateless Kubernetes-native hub that routes Selenium, Playwright, and MCP sessions to on-demand browser pods via custom resources.
- Dynamically generate self-signed certificates and certificate authorities within your test functions.
- Basic Assertion Library used along side native go testing, with building blocks for custom assertions.
- Go micro framework to help writing RESTful API integration test.
- This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec.
- Testing library with zero dependencies, detailed struct diffs and human-readable error messages.
- fluent framework for declarative Matcher objects that, when applied to input values, produce self-describing results.
- Type-safe factories for generating mock and fake data in Go, inspired by factory_boy and interface-forge.
- Quick and easy expression matching for JSON schemas used in requests and responses.
abecodes/dft
- Lightweight, zero dependency docker containers for testing (or more).
- A simple way to generate mocks for multiple purposes.
- Generate test data from SQL files before testing and clear it after finished.
- Fast, stealth-first browser automation library using Chrome DevTools Protocol over WebSocket with no external dependencies.
- Brings lightweight test suites with setup/teardown facilities to `testing` by leveraging Go1.7's Subtests.
- Mock filesystem for Go testing with error injection and latency simulation, built on `testing/fstest.MapFS`.
- CLI tool to generate typed and framework-agnostic interface mocks, with support for generics.
- Go testing extension, that allows a simple setup of strongly isolated unit, component, and integration test providing advanced mock support extending gomock and gock.
- Test predicate style assertions library with extensive diagnostics output.
- Quick and easy extendable assertions without introducing much boilerplate.
- Framework-agnostic evaluation library for testing Go agents and MCP servers with deterministic checks, CI-ready exit codes, and zero-code YAML-based testing.
- Mutation testing for Go with CI quality gates, coverage-aware MSI, baseline tracking, and git-diff filtering.
- Golang MySQL testcontainer to help with MySQL integration testing.
- CLI runner for JetBrains .http files with scripting, assertions, gRPC, and load testing.
- The simple library for change a values of private fields for testing.