Categories

Testing

Libraries for testing codebases and generating test data.

Repos

297

Stars

277,532

30 days

+2,038

Testing Frameworks

stretchr

A toolkit with common assertions and mocks that plays nicely with the standard library

Created Oct 2012

assertions go golang mocking testify
Total 26,278
30 days +55
keploy

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

Created Jan 2022

agentic-ai ai-testing-tool api-testing code-quality mock
Total 19,962
30 days +1,321
smartystreets

Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.

Created Aug 2013

bdd-framework go goconvey tdd-utilities testing-tools
Total 8,402
30 days +4
testcontainers

Testcontainers for Go is 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.

Created Jul 2018

automation docker go golang hacktoberfest
Total 5,040
30 days +24
google

Package for comparing Go values in tests

Created Jul 2017

equality go testing
Total 4,687
30 days +8
gavv

End-to-end HTTP and REST API testing for Go.

Created Apr 2016

assertions http json rest testing
Total 2,726
30 days +2
cucumber

Cucumber for golang

Created Jun 2015

functional-testing gherkin golang integration-testing
Total 2,696
30 days +13
matryer

Professional lightweight testing mini-framework for Go.

Created Dec 2016

golang testing
Total 1,981
30 days +7
orlangure

Test your code without writing mocks with ephemeral Docker containers 📦 Setup popular services with just a couple lines of code ⏱️ No bash, no yaml, only code 💻

Created Jan 2020

cockroachdb docker elasticsearch end-to-end-testing go
Total 1,488
30 days +1
dnaeon

Record and replay your HTTP interactions for fast, deterministic and accurate tests

Created Dec 2015

go golang testing
Total 1,400
30 days +2
mfridman

CLI tool for summarizing go test output. Pipe friendly. CI/CD friendly.

Created Oct 2018

golang test testing testing-tools
Total 1,264
30 days +3
fergusstrange

Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test

Created Nov 2019

Total 1,262
30 days +10
go-testfixtures

Ruby on Rails like test fixtures for Go. Write tests against a real database

Created Apr 2016

database fixtures go testing
Total 1,240
30 days +3
mccutchen

A reasonably complete and well-tested golang port of httpbin, with zero dependencies outside the go stdlib.

Created Aug 2016

golang http httpbin testing
Total 899
30 days +12
franela

Minimal and Beautiful Go testing framework

Created Sep 2013

Total 884
30 days +0
qiniu

A Comprehensive Coverage Testing System for The Go Programming Language

Created May 2020

coverage-testing go testing-tools
Total 873
30 days +0
h2non

Expressive end-to-end HTTP API testing made easy in Go

Created May 2016

assert expectations gentleman golang http
Total 777
30 days +0
gotestyourself

A collection of packages to augment the go testing package and support common patterns.

Created Aug 2017

assert assertions go golang test
Total 577
30 days +1
maxatome

Extremely flexible golang deep comparison, extends the go testing package, tests HTTP APIs and provides tests suite

Created May 2018

assertions deep-equals equality framework go
Total 466
30 days +3
appleboy

Testing API Handler written in Golang.

Created Mar 2016

golang testing-tools
Total 447
30 days +1
MarvinJWendt

Full-featured test framework for Go! Assertions, fuzzing, input testing, output capturing, and much more! 🍕

Created Jul 2021

automatic-testing fuzzy-testing go golang golang-library
Total 418
30 days +1
bradleyjkemp

Simple Go snapshot testing

Created Aug 2017

go golang golden-master snapshot snapshot-testing
Total 334
30 days +1
arch-go

Architecture checks for Go projects

Created Mar 2021

architecture go golang quality testing
Total 285
30 days +8
viant

End to end functional test and automation framework

Created Aug 2017

automation end-to-end-testing functional-testing integration-testing orchestration-framework
Total 268
30 days +0
ysmood

An enjoyable golang test framework.

Created Sep 2020

assert dependency-free diff golang lightweight
Total 266
30 days +0
Eun

http integration test framework

Created Jun 2019

go golang hacktoberfest
Total 255
30 days +0
msoap

Tool for show test coverage in terminal for Go source files

Created Feb 2016

cli golang test-coverage unittest
Total 251
30 days +0
vladopajic

go-test-coverage is a tool designed to report issues when test coverage falls below a specified threshold

Created Mar 2023

automation ci ci-cd code-coverage coverage-badge
Total 244
30 days +1
ozontech

Modular, zero-dependency testing framework for Go. Featuring plugins, suites, parallel tests and much more!

Created May 2026

framework go plugins testing testo
Total 191
30 days +12
khaiql

Clean database for testing, inspired by database_cleaner for Ruby

Created Jan 2017

clean-database database-engine driver golang testing
Total 163
30 days +0
kinbiko

A Go test assertion library for verifying that two representations of JSON are semantically equal

Created Oct 2018

assertion-library assertions go golang hacktoberfest
Total 145
30 days +1
adamluzsi

testcase is an opinionated testing framework to support test driven design.

Created Apr 2019

bdd behavior-driven-development chaos-engineering fault-injection go
Total 133
30 days +0
corbym

GoCrest - Hamcrest-like matchers for Go

Created Dec 2017

assertthat go golang hamcrest matcher
Total 108
30 days +0
posener

go websocket client for unit testing of a websocket handler

Created Mar 2017

go golang gorilla gorilla-websocket test
Total 102
30 days +0
hedhyw

Behaviour Driven Development tests generator for Golang

Created Jan 2022

bdd bdd-framework bdd-style bdd-style-testing-framework bdd-tests
Total 99
30 days +0
madflojo

Dynamically generate self-signed certificates and certificate authorities for Go tests

Created Jul 2019

certificate-generation go golang testing
Total 84
30 days +0
go-playground

❗ Basic Assertion Library used along side native go testing, with building blocks for custom assertions

Created Jul 2015

Total 67
30 days +0
stesla

A BDD library for Go

Created Nov 2009

Total 52
30 days +0
percolate

Go Interface Mocking Tool

Created Oct 2017 Archived

code-generation go interfaces mock testing
Total 205
30 days +0

Mock

vektra

A mock code autogenerator for Go

Created Sep 2014

generation generator go golang mock
Total 7,189
30 days +15
DATA-DOG

Sql mock driver for golang to test database interactions

Created Feb 2014

database go golang mock sql
Total 6,581
30 days +9
uber-go

GoMock is a mocking framework for the Go programming language.

Created May 2023

Total 3,436
30 days +12
SpectoLabs

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

Created Nov 2015

api-mock api-mocking api-simulation go golang
Total 2,536
30 days +10
matryer

Interface mocking tool for go generate

Created Aug 2016

codegen golang mocking testing
Total 2,211
30 days +5
jarcoal

HTTP mocking for Golang

Created Feb 2014

Total 2,079
30 days +2
maxbrunsfeld

A tool for generating self-contained, type-safe test doubles in go

Created May 2014

Total 1,148
30 days +6
gojuno

Powerful mock generation tool for Go programming language

Created Aug 2016

Total 754
30 days +2
DATA-DOG

Immutable transaction isolated sql driver for golang

Created Jul 2015

go golang integration-testing sql sql-driver
Total 749
30 days +0
pashagolub

pgx mock driver for golang to test database interactions

Created Feb 2021

database go golang pgx postgres
Total 601
30 days +3
xhd2015

All-in-one go testing library

Created Mar 2024

coverage coverage-report go go-test go-testing
Total 432
30 days +1
seborama

HTTP mock for Golang: record and replay HTTP/HTTPS interactions for offline testing

Created Jul 2016

api-simulation aws-s3 go go-vcr golang
Total 200
30 days +0
elgohr

Go Wrapper for using localstack

Created Mar 2020

aws cloudformation cloudwatch dynamodb ec2
Total 88
30 days +0
cabify

A test-friendly replacement for golang's time package [managed by soy-programador]

Created Jan 2020

Total 71
30 days +0

Fuzzing and delta-debugging/reducing/shrinking

dvyukov

Randomized testing for Go

Created Apr 2015

fuzzing go testing
Total 4,848
30 days +2
zimmski

A generic fuzzing and delta-debugging framework

Created May 2014

Total 246
30 days +0

Selenium and browser control tools

go-rod

A Chrome DevTools Protocol driver for web automation and scraping.

Created Jan 2020

automation cdp chrome-devtools chrome-devtools-protocol chrome-headless
Total 7,165
30 days +29
mxschmitt

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.

Created Aug 2020

automation browser-automation chromium firefox go
Total 3,549
30 days +27
mafredri

Package cdp provides type-safe bindings for the Chrome DevTools Protocol (CDP), written in the Go programming language.

Created Mar 2017

cdp chrome-debugging-protocol chrome-devtools-protocol debugging devtools-protocol
Total 796
30 days +0
alcounit

Scalable, stateless selenium, playwright, devtools, mpc hub for Kubernetes cluster

Created Oct 2020

automated-testing automation devtools-protocol docker go
Total 99
30 days +5

Fail injection

pingcap

An implementation of failpoints for Golang.

Created Apr 2019

failpoint failure-injection fault-injection golang
Total 900
30 days +4

More

Top 100 of 237

probelabs

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.

Created May 2013

devops go qa testing testing-tools
Total 19,344
30 days +26
chromedp

A faster, simpler way to drive browsers supporting the Chrome DevTools Protocol.

Created Jan 2017

chrome chrome-debugging-protocol chrome-devtools golang headless
Total 13,389
30 days +65
onsi

A Modern Testing Framework for Go

Created Aug 2013

bdd bdd-framework go golang test
Total 9,084
30 days +16
brianvoe

Random fake data generator written in go

Created Apr 2015

data fake generator go golang
Total 5,414
30 days +14
ory

Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.

Created Mar 2015

automation ci docker go integration-testing
Total 4,531
30 days +3
httprunner

HttpRunner 是一款开源的 API/UI 测试框架,简单易用,功能强大,具有丰富的插件化机制和高度的可扩展能力。

Created Jun 2017

adb agent-tars mcp-server mcphost testing
Total 4,311
30 days +9
getgauge

Light weight cross-platform test automation

Created Mar 2014

acceptance-testing agile bdd behavior-driven-development golang
Total 3,202
30 days +10
tebeka

Selenium/Webdriver client for Go

Created Mar 2012

Total 2,657
30 days +0
onsi

Ginkgo's Preferred Matcher Library

Created Aug 2013

Total 2,360
30 days +4
agiledragon

gomonkey is a library to make monkey patching in unit tests easy

Created Aug 2018

function function-variable global-variable gomonkey interface
Total 2,267
30 days +2
h2non

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

Created Mar 2016

api assertions expectations go http
Total 2,215
30 days +0
stripe

stripe-mock is a mock HTTP server that responds like the real Stripe API. It can be used instead of Stripe's testmode to make test suites integrating with Stripe faster and less brittle.

Created Jun 2017

Total 1,665
30 days +8
fsouza

Google Cloud Storage emulator & testing library.

Created May 2017

Total 1,500
30 days +17
helm-unittest

BDD styled unit test framework for Kubernetes Helm charts as a Helm plugin.

Created Nov 2017

hacktoberfest hacktoberfest-2026 helm helm-chart helm-plugin
Total 1,410
30 days +5
sourcegraph

WebLoop: Scriptable, headless WebKit with a Go API. Like PhantomJS, but for Go.

Created Oct 2013

Total 1,367
30 days +0
kubeshop

🔭 Tracetest - Build integration and end-to-end tests in minutes, instead of days, using OpenTelemetry and trace-based testing.

Created Feb 2022

integration-testing microservices opentelemetry testing tracetest
Total 1,331
30 days +3
ovh

🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions

Created Feb 2017

cli cli-app command command-line golang-application
Total 1,229
30 days +7
pact-foundation

Golang version of Pact. Pact is a contract testing framework for HTTP APIs and non-HTTP asynchronous messaging systems.

Created May 2016

consumer-driven-contracts golang hacktoberfest pact smartbear-supported
Total 963
30 days +4
Pallinder

A tiny generator of random data for golang, also known as a faker

Created Jul 2013

faker faker-generator faker-library go golang
Total 945
30 days +1
matryer

Markdown based document-driven RESTful API testing.

Created Jan 2016

assertions testing
Total 940
30 days +0
flyingmutant

Rapid is a modern Go property-based testing library

Created Jan 2019

fuzzing golang property-based-testing property-testing quickcheck
Total 928
30 days +28
bytedance

A simple and easy-to-use Go mocking library derived from ByteDance's internal best practices

Created Sep 2022

golang mock test testing
Total 912
30 days +5
go-faker

Go (Golang) Fake Data Generator for Struct, previously https://github.com/bxcodec/faker

Created Jun 2022

fake-data faker golang golang-library testing-library
Total 871
30 days +3
cockroachdb

Mocking your SQL database in Go tests has never been easier.

Created Jul 2020

Total 849
30 days +0
steinfletcher

A simple and extensible behavioural testing library for Go. You can use api test to simplify REST API, HTTP handler and e2e tests.

Created Dec 2018

api-testing behavioural-tests blackbox-testing golang jsonpath
Total 849
30 days +4
allaboutapps

IntegreSQL manages isolated PostgreSQL databases for your integration tests.

Created Apr 2020

go golang id-allaboutapps-backend integration-testing postgres
Total 812
30 days +3
lesovsky

Harmful workload generator for PostgreSQL

Created Jun 2020

benchmarking failure-injection postgresql testing
Total 799
30 days +0
go-test

Golang deep variable equality test that returns human-readable differences

Created Feb 2017

deep-equals golang golang-testing variable-equality
Total 790
30 days +2
tokopedia

gRPC Mock Server

Created Apr 2018

grpc mock mockserver
Total 747
30 days +0
go-check

Rich testing for the Go language

Created Apr 2014

Total 694
30 days +0
zimmski

Mutation testing for Go source code

Created Dec 2014

Total 679
30 days +1
kubernetes-sigs

A Go framework for end-to-end testing of components running in Kubernetes clusters.

Created Oct 2020

golang k8s-sig-testing kubernetes
Total 671
30 days +3
k1LoW

runn is a package/tool for running operations following a scenario.

Created Mar 2022

api-testing automation buf buf-schema-registry chrome-devtools-protocol
Total 658
30 days +4
leanovate

GOlang Property TestER

Created Feb 2016

golang golang-property-tester property-based-testing
Total 639
30 days +0
icrowley

Fake data generator for Go (Golang)

Created Dec 2014

Total 594
30 days +0
quii

Fake server, Consumer Driven Contracts and help with testing performance from one configuration file with zero system dependencies and no coding whatsoever

Created Apr 2015

Total 566
30 days +0
lingrino

go fault injection library

Created May 2020

gh-go
Total 556
30 days +0
benbjohnson

A small collection of functions for Go testing.

Created May 2014

Total 539
30 days +1
devicelab-dev

Fast mobile UI test automation for Android, iOS, React Native, Flutter & Expo. Open-source Maestro alternative — 100% free, no features behind a paywall. Supports real iOS devices, simulators, emulators, and cloud providers.

Created Jan 2026

android appium ci-cd golang ios
Total 534
30 days +24
ethereum

Ethereum end-to-end test harness

Created Jul 2016

docker ethereum golang simulation testing
Total 530
30 days +3
frankban

Quick helpers for testing Go applications

Created Sep 2017

assertions go golang library testing
Total 529
30 days +1
peterldowns

quickly run tests in their own temporary, isolated, postgres databases

Created May 2023

Total 519
30 days +6
go-gremlins

A mutation testing tool for Go.

Created Jun 2022

go golang mutation-testing testing testing-techniques
Total 472
30 days +25
etcd-io

failpoints for go

Created Jun 2016

Total 428
30 days +2
nicholasjackson

Simple service for testing upstream service communications

Created Jul 2019

golang microservices testing-tool
Total 424
30 days +2
ozontech

Complete Allure provider in Go which doesn't overload the interface usage. Maintenance mode, see https://github.com/ozontech/testo

Created Jan 2022

allure allure-framework go golang qa
Total 408
30 days +2
lamoda

Gonkey - a testing automation tool

Created Jun 2019

autotesting fixtures microservices mocks testing
Total 393
30 days +0
bluele

A library for setting up Golang objects inspired by factory_bot.

Created Oct 2015

factory-boy factory-girl fixtures-replacement go golang
Total 383
30 days +0
scenarigo

An end-to-end scenario testing tool for HTTP/gRPC server.

Created Feb 2019

Total 369
30 days +0
dmgk

A library for generating fake data such as names, addresses, and phone numbers.

Created Oct 2014

fake go golang phone-number
Total 356
30 days +0
wawandco

Struct Faker for Go

Created Nov 2015

faker go struct stub testing
Total 345
30 days +0
go-redis

Redis client Mock

Created Dec 2020

go-redis mock redis-mock
Total 341
30 days +0
prashantv

gostub is a library to make stubbing in unit tests easy

Created Jul 2015

Total 321
30 days +0
gost-dom

Headless browser for Go for TDD workflows

Created Nov 2024

go golang headless headless-browsers tdd
Total 307
30 days +2
petergtz

Pegomock is a powerful, yet simple mocking framework for the Go programming language

Created May 2016

golang mock mocking-framework
Total 298
30 days +0
hexops

Automatically update your Go tests

Created Dec 2020

go golang golang-package golden testing
Total 295
30 days +1
gtramontina

🧬 Go Mutation Testing

Created Nov 2022

go golang golang-library golang-tools gotest
Total 292
30 days +1
avito-tech

Mutation testing for Go source code. Fork from https://github.com/zimmski/go-mutesting

Created Jan 2021

golang mutation-testing
Total 285
30 days +6
hofstadter-io

API testing framework inspired by frisby-js

Created Sep 2015

api-testing-framework frisby frisby-js golang testing
Total 275
30 days +0
coder

A Go time testing library for writing deterministic unit tests

Created Jul 2024

Total 272
30 days +0
gkampitakis

Jest-like snapshot testing in Go 📸

Created Nov 2021

go go-testing jest matchjson matchsnapshot
Total 270
30 days +0
sebdah

Golden file testing for Go

Created Dec 2016

fixtures golang golden golden-test testing
Total 265
30 days +1
Dasongzi1366

一个使用 Golang 构建的 Android 自动化测试框架,旨在高效且灵活地与 Android 设备进行交互。它支持 UI 自动化、系统交互以及自定义自动化任务。

Created Sep 2024

Total 264
30 days +2
guidewire-oss

A ginkgo test reporter extension for storing test run information and also for reporting html pages

Created Oct 2023

bdd fern ginkgo ginkgo-reporter golang
Total 264
30 days +0
cch123

Patch all Go functions for testing

Created Sep 2020

Total 258
30 days +0
efficientgo

Robust framework for running complex workload scenarios in isolation, using Go; for integration, e2e tests, benchmarks and more! 💪

Created Jul 2021

e2e go golang testing
Total 257
30 days +1
ozontech

Library for simply creating HTTP tests in Go with Allure reports.

Created May 2022

allure assertions go golang http
Total 224
30 days +0
erikstmartin

Framework for stubbing responses from go's driver.Driver interface

Created Sep 2012

Total 221
30 days +0
Selvatico

Go GORM & SQL mocking library

Created Jun 2017

db go golang gorm mocks
Total 219
30 days +0
nalgeon

Minimal test assertions in Go

Created Jul 2025

assert golang testing
Total 218
30 days +4
shoenig

A modern generic testing assertions library for Go

Created Apr 2022

assertions assertions-library generic go golang
Total 218
30 days +1
Trendyol

HTTP mocking to test API services for chaos scenarios

Created Jul 2020

api chaos go mocking
Total 213
30 days +0
dvyukov

Corpus for github.com/dvyukov/go-fuzz examples

Created Jan 2016

Total 209
30 days +0
rafaeljusto

Easy way to unit test projects using redigo library (Redis client in go)

Created Jul 2014

Total 198
30 days +0
ovechkin-dm

Mockito for golang

Created Mar 2023

go golang mock mocking mockito
Total 197
30 days +1
alecthomas

A simple assertion library using Go generics

Created Nov 2015

assert generics go golang testing
Total 196
30 days +1
kubernetes-csi

CSI test frameworks

Created Oct 2017

container-storage-interface containers csi ginkgo golang
Total 180
30 days +0
dave

Courtney is a coverage tool for Go

Created Feb 2017

coverage coverage-files go golang test-coverage
Total 180
30 days +1
easysoft

zentaoatf is an cross platform automation testing framework written in go language.

Created Mar 2013

Total 177
30 days +2
getanteon

Faker for golang. Random data generator. Compatible with postman dynamic variables.

Created May 2022

faker go go-faker golang postman
Total 176
30 days +0
dhuan

Build and test APIs easily

Created May 2022

api api-mocking command-line-tool e2e-tests golang
Total 173
30 days +0
chaos-mesh

A Chaos Engineering toolkit.

Created Oct 2020

chaos chaos-engineering chaos-mesh chaos-testing fault-injection
Total 162
30 days +3
manveru

generate fake data in go

Created Apr 2012

Total 162
30 days +0
checkr

Mock all the services. Intuitive YAML DSL for HTTP, gRPC, Kafka, and AMQP mocks.

Created Aug 2018

golang integration-testing staging
Total 161
30 days +0
bunsenapp

Selenium web driver library written in Go

Created Dec 2016

golang selenium selenium-server
Total 161
30 days +0
ivpusic

supertest inspired library for testing HTTP servers

Created Jan 2015

Total 151
30 days +0
elliotchance

🕋 Mocking Redis in unit tests in Go.

Created Aug 2018

golang mocking redis redismock stub
Total 149
30 days +0
toqoz

PowerAssert library for golang

Created Jul 2014

assert go power-assert testing
Total 148
30 days +0
go-bdd

BDD framework

Created May 2019

bdd gherkin go golang hacktoberfest
Total 147
30 days +0
Use-Tusk

Automated testing suite with live traffic record and replay

Created Sep 2025

api-testing mock test-automation test-automation-framework test-generation
Total 144
30 days +0
system-pclub

Fuzzing concurrent Go programs

Created Aug 2021

Total 141
30 days +0
elliotchance

✔️ tf is a microframework for parameterized testing of functions and HTTP in Go.

Created Aug 2018

assertions go golang http micro-framework
Total 141
30 days +0
migueleliasweb

A library to aid unittesting code that uses Golang's Github SDK

Created Jul 2021

github go go-github golang mock
Total 140
30 days +0
gucumber

An implementation of Cucumber BDD-style testing for Go.

Created Mar 2015

Total 140
30 days +0
stretchr

Recursive go testing, done better.

Created Oct 2012

Total 140
30 days +0
bmizerany

Asserts to Go testing

Created Nov 2010

Total 138
30 days +0

From awesome-go (MIT), plus repos sorted by Jev.