Awesome Go Testing Libraries

  • updated 5 months ago MIT License

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

  • updated over 1 year ago MIT License

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

  • badio badio 10
    star
    updated about 8 years ago MIT License

    Extensions to Go's testing/iotest package

  • baloo baloo 771
    star
    updated over 1 year ago MIT License

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

  • be be 84
    star
    updated 7 months ago MIT License

    The Go test helper for minimalists

  • biff biff 12
    star
    updated over 1 year ago MIT License

    Bifurcation Framework for testing and use cases

  • bro bro 25
    star
    updated over 7 years ago

    bro watch files in directory and run tests for them

  • cdp cdp 686
    star
    updated about 1 year ago MIT License

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

  • updated 5 months ago BSD 3-Clause "New...

    Go Interface Mocking Tool

  • check check 680
    star
    updated 8 months ago Other

    Rich testing for the Go language

  • chromedp chromedp 10,273
    star
    updated about 1 month ago MIT License

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

  • updated 13 days ago MIT License

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

  • updated 12 months ago GNU General Publi...

    The portal gates to coverage reports

  • updated 12 months ago MIT License

    Simple Go snapshot testing

  • updated over 2 years ago MIT License

    Clean database for testing, inspired by database_cleaner for Ruby

  • updated 9 months ago Apache License 2.0

    Datastore Testibility

  • updated about 1 month ago MIT License

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

  • endly endly 251
    star
    updated 3 months ago Apache License 2.0

    End to end functional test and automation framework

  • updated 20 days ago Apache License 2.0

    An implementation of failpoints for Golang.

  • fake fake 587
    star
    updated about 2 months ago MIT License

    Fake data generator for Go (Golang)

  • updated 5 months ago MIT License
  • flute flute 17
    star
    updated about 1 year ago MIT License

    Golang HTTP client testing framework

  • frisby frisby 277
    star
    updated about 4 years ago MIT License

    API testing framework inspired by frisby-js

  • gauge gauge 2,928
    star
    updated 2 months ago Apache License 2.0

    Light weight cross-platform test automation

  • ggr ggr 310
    star
    updated 4 months ago Apache License 2.0

    A lightweight load balancer used to create big Selenium clusters

  • updated 3 months ago MIT License

    Behaviour Driven Development tests generator for Golang

  • ginkgo ginkgo 7,940
    star
    updated 4 days ago MIT License

    A Modern Testing Framework for Go

  • gnomock gnomock 1,204
    star
    updated 10 months ago MIT License

    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 ๐Ÿ’ป

  • goaws goaws 748
    star
    updated 4 months ago MIT License

    AWS (SQS/SNS) Clone for Development testing

  • goblin goblin 887
    star
    updated over 1 year ago MIT License

    Minimal and Beautiful Go testing framework

  • goc goc 757
    star
    updated about 2 months ago Apache License 2.0

    A Comprehensive Coverage Testing System for The Go Programming Language

  • updated 7 months ago MIT License

    Tool for show test coverage in terminal for Go source files

  • gock gock 1,999
    star
    updated 4 months ago MIT License

    HTTP traffic mocking and testing made easy in Go เผผส˜ฬšู„อœส˜ฬšเผฝ

  • go-cmp go-cmp 3,911
    star
    updated 4 months ago BSD 3-Clause "New...

    Package for comparing Go values in tests

  • goconvey goconvey 8,080
    star
    updated about 2 months ago Other

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

  • updated about 1 year ago BSD 3-Clause "New...

    GoCrest - Hamcrest-like matchers for Go

  • godog godog 2,183
    star
    updated 24 days ago MIT License

    Cucumber for golang

  • updated almost 3 years ago MIT License

    Testing API Handler written in Golang.

  • go-fuzz go-fuzz 4,699
    star
    updated 3 months ago Apache License 2.0

    Randomized testing for Go

  • gofuzz gofuzz 1,464
    star
    updated over 1 year ago Apache License 2.0

    Fuzz testing for go.

  • updated about 1 year ago BSD 3-Clause "New...

    gogiven - BDD testing framework for go that generates readable output directly from source code

  • go-hit go-hit 243
    star
    updated 3 months ago MIT License

    http integration test framework

  • updated about 2 months ago Apache License 2.0

    Go Wrapper for using localstack

  • updated 12 months ago MIT License

    Library created for testing JSON against patterns.

  • gomega gomega 2,072
    star
    updated 14 days ago MIT License

    Ginkgo's Preferred Matcher Library

  • updated 11 months ago MIT License

    Mutation testing for Go source code

  • updated over 1 year ago MIT License

    Golang MySQL testcontainer package

  • gont gont 25
    star
    updated about 1 year ago

    A testing framework for distributed Go applications

  • updated about 2 months ago MIT License

    SMTP mock server written on Golang. Mimic any ๐Ÿ“ค SMTP server behavior for your test environment with fake SMTP server.

  • gospec gospec 113
    star
    updated almost 10 years ago Apache License 2.0

    Testing framework for Go. Allows writing self-documenting tests/specifications, and executes them concurrently and safely isolated. [UNMAINTAINED]

  • updated over 12 years ago MIT License

    A BDD library for Go

  • updated over 7 years ago MIT License

    Test suites support for standard Go1.7 "testing" by leveraging Subtests feature

  • updated 3 months ago BSD 2-Clause "Sim...

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

  • updated over 2 years ago BSD 3-Clause "New...

    Unit-testing predicates for Go.

  • gotests gotests 4,668
    star
    updated 9 months ago Apache License 2.0

    Automatically generate Go test boilerplate from your source code.

  • updated 4 months ago Other

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

  • updated about 1 month ago Other

    Immutable transaction isolated sql driver for golang

  • go-vcr go-vcr 1,096
    star
    updated 8 days ago BSD 2-Clause "Sim...

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

  • govcr govcr 161
    star
    updated 9 months ago Apache License 2.0

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

  • updated over 3 years ago Other

    Hamcrest matchers for the Go programming language

  • hoverfly hoverfly 2,270
    star
    updated 6 months ago Apache License 2.0

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

  • updated 3 months ago MIT License

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

  • httpmock httpmock 1,854
    star
    updated 3 months ago MIT License

    HTTP mocking for Golang

  • is is 1,704
    star
    updated 3 months ago MIT License

    Professional lightweight testing mini-framework for Go.

  • updated about 2 months ago MIT License

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

  • leaktest leaktest 1,031
    star
    updated over 3 years ago BSD 3-Clause "New...

    Goroutine Leak Detector

  • mat mat 5
    star
    updated about 8 years ago MIT License

    Print mail to stdout

  • updated 11 days ago MIT License

    Powerful mock generation tool for Go programming language

  • mmock mmock 652
    star
    updated 12 months ago MIT License

    Mmock is an HTTP mocking application for testing and fast prototyping

  • mock mock 9,199
    star
    updated 4 months ago Apache License 2.0

    GoMock is a mocking framework for the Go programming language.

  • mockery mockery 5,178
    star
    updated 6 months ago BSD 3-Clause "New...

    A mock code autogenerator for Go

  • updated over 9 years ago MIT License

    Mock object for Go http.ResponseWriter

  • updated 11 months ago GNU General Publi...

    Library that make mocking of Go functions/methods easy

  • updated about 1 year ago Apache License 2.0

    A language agnostic HTTP mock server for quick stub testing

  • updated over 1 year ago MIT License

    ๐Ÿฅฎ A simple way to generate mocks for multiple purposes

  • objx objx 670
    star
    updated about 2 months ago MIT License

    Go package for dealing with maps, slices, JSON and other data.

  • updated over 2 years ago MIT License

    This tool can be useful for writing a tests. If you want change private field in struct from imported libraries than it can help you.

  • updated 3 months ago MIT License

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

  • updated over 7 years ago

    cmd tool for automatic storage and comparison of benchmarks results

  • probe probe 28
    star
    updated about 1 year ago MIT License

    Simplified Integration Testing Using YAML and JQ

  • realize realize 4,437
    star
    updated almost 3 years ago GNU General Publi...

    Realize is the #1 Golang Task Runner which enhance your workflow by automating the most common tasks and using the best performing Golang live reloading.

  • updated about 1 year ago MIT License

    ๐Ÿ•‹ Mocking Redis in unit tests in Go.

  • rod rod 4,782
    star
    updated 15 days ago MIT License

    A Devtools driver for web automation and scraping

  • updated over 4 years ago GNU General Publi...

    Quick and easy expression matching for JSON schemas used in requests and responses

  • selenium selenium 2,399
    star
    updated 9 months ago MIT License

    Selenium/Webdriver client for Go

  • selenoid selenoid 2,485
    star
    updated about 1 month ago Apache License 2.0

    Selenium Hub successor running browsers within containers. Scalable, immutable, self hosted Selenium-Grid on any platform with single binary.

  • updated 2 months ago MIT License

    Testing helper for concurrency

  • tavor tavor 242
    star
    updated over 5 years ago MIT License

    A generic fuzzing and delta-debugging framework

  • updated over 4 years ago MIT License

    test utilities for golang

  • updated 10 months ago Apache License 2.0

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

  • updated 12 months ago MIT License

    Go package with an easy-to-use suite of functions for generating test certificates

  • updated 26 days ago MIT License

    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.

  • updated 8 months ago MIT License

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

  • testify testify 22,028
    star
    updated 6 days ago MIT License

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

  • testza testza 414
    star
    updated 8 months ago MIT License

    Full-featured test framework for Go! Assertions, fuzzing, input testing, output capturing, and much more! ๐Ÿ•

  • timex timex 70
    star
    updated over 3 years ago Other

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

  • updated over 1 year ago GNU General Publi...

    A simple assertion library for go

  • tt tt 6
    star
    updated 8 months ago Apache License 2.0

    Simple and colorful test tools

  • wstest wstest 102
    star
    updated over 3 years ago Apache License 2.0

    go websocket client for unit testing of a websocket handler