Awesome Go Testing Libraries

  • updated 3 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 about 2 years ago MIT License

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

  • badio badio 10
    star
    updated almost 9 years ago MIT License

    Extensions to Go's testing/iotest package

  • baloo baloo 776
    star
    updated over 2 years ago MIT License

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

  • be be 103
    star
    updated about 1 year ago MIT License

    The Go test helper for minimalists

  • biff biff 12
    star
    updated almost 2 years ago MIT License

    Bifurcation Framework for testing and use cases

  • bro bro 25
    star
    updated about 8 years ago

    bro watch files in directory and run tests for them

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

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

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

    Go Interface Mocking Tool

  • check check 680
    star
    updated about 1 year ago Other

    Rich testing for the Go language

  • chromedp chromedp 10,864
    star
    updated 4 months ago MIT License

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

  • updated about 1 month ago MIT License

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

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

    The portal gates to coverage reports

  • updated over 1 year ago MIT License

    Simple Go snapshot testing

  • updated about 3 years ago MIT License

    Clean database for testing, inspired by database_cleaner for Ruby

  • updated over 1 year ago Apache License 2.0

    Datastore Testibility

  • updated 3 months ago MIT License

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

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

    End to end functional test and automation framework

  • updated 6 months ago Apache License 2.0

    An implementation of failpoints for Golang.

  • fake fake 593
    star
    updated 4 months ago MIT License

    Fake data generator for Go (Golang)

  • updated 3 months ago MIT License
  • flute flute 17
    star
    updated over 1 year ago MIT License

    Golang HTTP client testing framework

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

    API testing framework inspired by frisby-js

  • gauge gauge 2,963
    star
    updated 3 months ago Apache License 2.0

    Light weight cross-platform test automation

  • ggr ggr 314
    star
    updated 7 months ago Apache License 2.0

    A lightweight load balancer used to create big Selenium clusters

  • updated 5 months ago MIT License

    Behaviour Driven Development tests generator for Golang

  • ginkgo ginkgo 8,322
    star
    updated about 2 months ago MIT License

    A Modern Testing Framework for Go

  • gnomock gnomock 1,204
    star
    updated over 1 year 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 781
    star
    updated 24 days ago MIT License

    AWS (SQS/SNS) Clone for Development testing

  • goblin goblin 887
    star
    updated almost 2 years ago MIT License

    Minimal and Beautiful Go testing framework

  • goc goc 796
    star
    updated 3 months ago Apache License 2.0

    A Comprehensive Coverage Testing System for The Go Programming Language

  • updated about 1 year ago MIT License

    Tool for show test coverage in terminal for Go source files

  • gock gock 2,067
    star
    updated 4 months ago MIT License

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

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

    Package for comparing Go values in tests

  • goconvey goconvey 8,236
    star
    updated 4 months ago Other

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

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

    GoCrest - Hamcrest-like matchers for Go

  • godog godog 2,307
    star
    updated 26 days ago MIT License

    Cucumber for golang

  • updated over 3 years ago MIT License

    Testing API Handler written in Golang.

  • go-fuzz go-fuzz 4,749
    star
    updated 10 months ago Apache License 2.0

    Randomized testing for Go

  • gofuzz gofuzz 1,464
    star
    updated about 2 years ago Apache License 2.0

    Fuzz testing for go.

  • updated over 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 250
    star
    updated 7 months ago MIT License

    http integration test framework

  • updated 3 months ago Apache License 2.0

    Go Wrapper for using localstack

  • updated over 1 year ago MIT License

    Library created for testing JSON against patterns.

  • gomega gomega 2,171
    star
    updated about 1 month ago MIT License

    Ginkgo's Preferred Matcher Library

  • updated 5 months ago MIT License

    Mutation testing for Go source code

  • updated about 2 years ago MIT License

    Golang MySQL testcontainer package

  • gont gont 25
    star
    updated over 1 year ago

    A testing framework for distributed Go applications

  • updated 4 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 over 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 about 13 years ago MIT License

    A BDD library for Go

  • updated about 8 years ago MIT License

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

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

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

  • updated about 3 years ago BSD 3-Clause "New...

    Unit-testing predicates for Go.

  • gotests gotests 4,668
    star
    updated over 1 year ago Apache License 2.0

    Automatically generate Go test boilerplate from your source code.

  • updated 3 months ago Other

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

  • updated 4 months ago Other

    Immutable transaction isolated sql driver for golang

  • go-vcr go-vcr 1,250
    star
    updated about 1 month ago BSD 2-Clause "Sim...

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

  • govcr govcr 173
    star
    updated 7 months ago Apache License 2.0

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

  • updated almost 4 years ago Other

    Hamcrest matchers for the Go programming language

  • hoverfly hoverfly 2,270
    star
    updated about 1 year ago Apache License 2.0

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

  • updated 6 months ago MIT License

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

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

    HTTP mocking for Golang

  • is is 1,731
    star
    updated 10 months ago MIT License

    Professional lightweight testing mini-framework for Go.

  • updated 9 months ago MIT License

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

  • leaktest leaktest 1,037
    star
    updated about 4 years ago BSD 3-Clause "New...

    Goroutine Leak Detector

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

    Print mail to stdout

  • updated 4 months ago MIT License

    Powerful mock generation tool for Go programming language

  • mmock mmock 668
    star
    updated 4 months ago MIT License

    Mmock is an HTTP mocking application for testing and fast prototyping

  • mock mock 9,286
    star
    updated 11 months ago Apache License 2.0

    GoMock is a mocking framework for the Go programming language.

  • mockery mockery 5,859
    star
    updated 4 months ago BSD 3-Clause "New...

    A mock code autogenerator for Go

  • updated about 10 years ago MIT License

    Mock object for Go http.ResponseWriter

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

    Library that make mocking of Go functions/methods easy

  • updated over 1 year ago Apache License 2.0

    A language agnostic HTTP mock server for quick stub testing

  • updated about 2 years ago MIT License

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

  • objx objx 695
    star
    updated 9 months ago MIT License

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

  • updated about 3 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 4 months ago MIT License

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

  • updated about 8 years ago

    cmd tool for automatic storage and comparison of benchmarks results

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

    Simplified Integration Testing Using YAML and JQ

  • realize realize 4,454
    star
    updated over 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 almost 2 years ago MIT License

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

  • rod rod 5,318
    star
    updated 3 months ago MIT License

    A Chrome DevTools Protocol driver for web automation and scraping.

  • updated about 5 years ago GNU General Publi...

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

  • selenium selenium 2,503
    star
    updated 7 months ago MIT License

    Selenium/Webdriver client for Go

  • selenoid selenoid 2,572
    star
    updated 3 months 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 6 months ago MIT License

    Testing helper for concurrency

  • tavor tavor 245
    star
    updated about 6 years ago MIT License

    A generic fuzzing and delta-debugging framework

  • updated about 5 years ago MIT License

    test utilities for golang

  • updated over 1 year ago Apache License 2.0

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

  • updated over 1 year ago MIT License

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

  • updated 2 months 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 about 1 year ago MIT License

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

  • testify testify 23,256
    star
    updated about 2 months ago MIT License

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

  • testza testza 414
    star
    updated over 1 year ago MIT License

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

  • timex timex 70
    star
    updated over 4 years ago Other

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

  • updated about 2 years ago GNU General Publi...

    A simple assertion library for go

  • tt tt 6
    star
    updated about 1 year ago Apache License 2.0

    Simple and colorful test tools

  • wstest wstest 101
    star
    updated almost 4 years ago Apache License 2.0

    go websocket client for unit testing of a websocket handler