Testing
100+ libraries in this category
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
BDD-style framework with web UI and live reload
Tool to generate Go interfaces
A Devtools driver to make web automation and scraping easy
Mock SQL driver for testing database interactions
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
Randomized testing system
Package for comparing Go values in tests
browser automation library to control Chromium, Firefox and WebKit with a single API
Mocking framework for the Go programming language
Concise, declarative, and easy to use end-to-end HTTP and REST API testing
Cucumber BDD framework for Go
HTTP(S) proxy for recording and simulating REST/SOAP APIs with extensible middleware and easy-to-use CLI
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
Professional lightweight testing mini-framework for Go
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
Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test
A helper for Rails' like test fixtures to test database applications
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
Mocha like testing framework of Go
Goc is a comprehensive coverage testing system for The Go Programming Language
Type-safe bindings for the Chrome Debugging Protocol that can be used with browsers or other debug targets that implement it
Expressive and versatile end-to-end HTTP API testing made easy
Mock generator for Go interfaces
Single transaction based database driver mainly for testing purposes
A mock library implementing [pgx - PostgreSQL Driver and Toolkit](https://github.com/jackc/pgx/)
A collection of packages to augment the go testing package and support common patterns
Extremely flexible golang deep comparison, extends the go testing package
API Handler Testing for Golang Router framework
A general pureposed function mocking library
Full-featured test framework with nice colorized output
Simple snapshot testing addon for your test framework
Architecture testing tool for Go projects
REST API testing framework
Jest-like snapshot testing in Golang
Declarative end to end functional testing
An enjoyable golang test framework
Hit is an http integration test framework written in golang
Tool for viewing test coverage in terminal
Generic fuzzing and delta-debugging 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
Plugin-based testing framework with suites, parallel tests, hooks and parametrization. Inspired by Pytest
Clean database for testing purpose, inspired by `database_cleaner` in Ruby
Package for verifying that your JSON payloads are serialized correctly
The minimalist generic test assertion library
Idiomatic testing framework for Behavior Driven Development
Composable hamcrest-like matchers for Go assertions
Websocket client for unit-testing a websocket http.Handler
BDD boilerplate generator and framework
Stateless Kubernetes-native hub that routes Selenium, Playwright, and MCP sessions to on-demand browser pods via custom resources
Tool for using localstack in AWS testing
Dynamically generate self-signed certificates and certificate authorities within your test functions
A test-friendly replacement for the native `time` package
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
Datastore testing for SQL, NoSQL, structured files
library created for testing JSON against patterns
Fixture manage engine, inspired by pytest fixtures
Composable Go test framework with fixtures, hooks, retries, metadata, plugins, and parallel execution
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
HTTP client testing framework
Mock object for Go http.ResponseWriter
Quick and easy expression matching for JSON schemas used in requests and responses
Lightweight, zero dependency docker containers for testing (or more)
A simple way to generate mocks for multiple purposes
YATSPEC-like BDD testing framework for Go
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
Bifurcation testing framework, BDD compatible
Testing helper for concurrency
Brings lightweight test suites with setup/teardown facilities to `testing` by leveraging Go1.7's Subtests
Simple and colorful test tools
Mock filesystem for Go testing with error injection and latency simulation, built on `testing/fstest.MapFS`
Test predicate style assertions library with extensive diagnostics output
CLI tool to generate typed and framework-agnostic interface mocks, with support for generics
Quick and easy extendable assertions without introducing much boilerplate
Mutation testing for Go with CI quality gates, coverage-aware MSI, baseline tracking, and git-diff filtering
Go testing extension, that allows a simple setup of strongly isolated unit, component, and integration test providing advanced mock support extending gomock and gock
Dev and testing environment management framework
Framework-agnostic evaluation library for testing Go agents and MCP servers with deterministic checks, CI-ready exit codes, and zero-code YAML-based testing
Golang MySQL testcontainer to help with MySQL integration testing
Draws a Go coverage profile as a package tree with a total on every row
The simple library for change a values of private fields for testing
A simple Web UI for Go test coverage, and the [go-test-coverage-html-report](https://github.com/marketplace/actions/go-test-coverage-html-report) reusable GitHub Action
CLI runner for JetBrains .http files with scripting, assertions, gRPC, and load testing
A live mocker library for functions and methods in Golang for unit testing with fluent syntax, no code-gen needed
Mutation testing for Go source code