Categories

Testing

Libraries for testing codebases and generating test data.

Repos

297

Stars

277,514

30 days

+2,023

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
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 +25
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
matryer

Professional lightweight testing mini-framework for Go.

Created Dec 2016

golang testing
Total 1,980
30 days +6
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,263
30 days +2
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,239
30 days +2
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 898
30 days +11
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 465
30 days +2
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 333
30 days +0
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
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
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
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
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,210
30 days +4
DATA-DOG

Immutable transaction isolated sql driver for golang

Created Jul 2015

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

All-in-one go testing library

Created Mar 2024

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

Go Wrapper for using localstack

Created Mar 2020

aws cloudformation cloudwatch dynamodb ec2
Total 88
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

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

More

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
httprunner

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

Created Jun 2017

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

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

Created Mar 2016

api assertions expectations go http
Total 2,215
30 days +0
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,409
30 days +5
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,228
30 days +7
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
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
lesovsky

Harmful workload generator for PostgreSQL

Created Jun 2020

benchmarking failure-injection postgresql testing
Total 799
30 days +0
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
ethereum

Ethereum end-to-end test harness

Created Jul 2016

docker ethereum golang simulation testing
Total 529
30 days +2
frankban

Quick helpers for testing Go applications

Created Sep 2017

assertions go golang library testing
Total 528
30 days +0
go-gremlins

A mutation testing tool for Go.

Created Jun 2022

go golang mutation-testing testing testing-techniques
Total 472
30 days +25
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
wawandco

Struct Faker for Go

Created Nov 2015

faker go struct stub testing
Total 345
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
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
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
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
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
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
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
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
dave

Courtney is a coverage tool for Go

Created Feb 2017

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

Build and test APIs easily

Created May 2022

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

PowerAssert library for golang

Created Jul 2014

assert go power-assert testing
Total 148
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
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
earthboundkid

The Go test helper for minimalists

Created Apr 2022

generic go golang golden-file testing
Total 134
30 days +1
mvrahden

Go test suite framework – BDD vocabulary, lifecycle hooks, fixtures, fuzzing, benchmarking, snapshots. Zero reflection, zero runtime deps – powered by code generation.

Created Jan 2024

assertions bdd bdd-framework code-generation codegen
Total 129
30 days +4
integrii

A Go package for working with headless Chrome. Run interactive JavaScript commands on web pages with Go and Chrome.

Created Sep 2017

chrome cli go headless macos
Total 123
30 days +0
thepudds

Auto-gen Go fuzzing wrappers from normal code. Finds buggy call sequences, including data races & deadlocks. Supports rich signature types.

Created Dec 2021

fuzzing go testing
Total 115
30 days +0
mstrYoda

Architecture testing for Golang

Created Apr 2025

architecture golang hexagonal-architecture layered-architecture testing
Total 102
30 days +0
axcdnt

Snitch is the tool that keeps your tests under surveillence.

Created Jun 2019

cli go tdd testing tool
Total 98
30 days +0
segmentio

🚀🌏 A simple end-to-end testing framework for Go

Created Sep 2018

end-to-end-testing go golang integration-testing testing
Total 81
30 days +0
beme

📸 A Go testing utility for http response snapshots.

Created Feb 2017

go golang snapshot testing
Total 77
30 days +0
Flaque

🍖 A small temporary file utility for Go testing.

Created Feb 2017

go golang library testing
Total 75
30 days +0
smallinsky

Microservice Test Framework

Created Apr 2019

go golang grpc testing
Total 74
30 days +0
bmuschko

Demonstrates the use of different test frameworks for Go code.

Created Jun 2018

golang testing
Total 71
30 days +0
ActiveState

Cross-platform (Windows, Mac, Linux) integration testing for your terminals

Created Apr 2020

cross-platform emulation expect golang linux
Total 65
30 days +0
federicoleon

How to unit, integration and functional test in Go

Created Sep 2019

ddd functional go golang integration
Total 62
30 days +0
Tencent

go语言mock库, 用于编写go语言单元测试时,mock函数、接口等场景

Created Nov 2023

devops go golang mock tdd
Total 61
30 days +0
marle3003

Your API mocking tool for OpenAPI and AsyncAPI using Go and JavaScript - https://mokapi.io

Created Apr 2020

api-mocking api-simulation api-testing fake javascript
Total 61
30 days +3
cyw0ng95

Another SQL fuzzing tool, like SQLSmith

Created Oct 2025

fuzzing-framework testing
Total 60
30 days +0
nauyey

A package for setting up Golang structs as test data.

Created Dec 2017

factories factory factory-boy factory-girl fixtures
Total 60
30 days +0
zpsean

Go4Api - an API testing tool written in Go

Created Aug 2018

go golang test-automation testing testing-tools
Total 59
30 days +0
go-gophers

Gophers is a tool for API testing

Created Jan 2016

testing
Total 56
30 days +0
lordofthejars

Tool to detect regressions between services

Created Jun 2018

devops microservices testing testing-tools
Total 53
30 days +0
knz

test library for Bubbletea TUI models

Created Aug 2022

golang hacktoberfest testing
Total 52
30 days +0
gcapizzi

A Go mocking framework.

Created Sep 2017

go golang mock mocking tdd
Total 50
30 days +0
qiniu

Qiniu httptest utilities

Created Jul 2015 Archived

go golang http httptest test
Total 630
30 days +0
benbjohnson

Go client for PhantomJS.

Created Apr 2017 Archived

go phantomjs testing
Total 292
30 days +0
NeowayLabs

Golang AMQP mocking library

Created Mar 2016 Archived

amqp fake golang library mock
Total 167
30 days +0
hegeldev

Property-based testing for Go

Created Jan 2026 Archived

go pbt testing
Total 108
30 days +3
httprunner

One-stop solution for HTTP(S) testing, covering API testing, load testing and digital experience monitoring (DEM).

Created Sep 2021 Archived

api-testing boomer dem http httprunner
Total 84
30 days +0
zombiezen

A Go test harness that starts an ephemeral PostgreSQL server

Created Aug 2020 Archived

golang postgres postgresql testing
Total 60
30 days +0
vitorsalgado

Build Mock APIs in Go (unmaintained: Use VLatte)

Created Jun 2022 Archived

go golang golang-library http mock
Total 53
30 days +1

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