Go Testing Frameworks

Open-source Go projects categorized as Testing Frameworks

Top 23 Go Testing Framework Projects

  • Testify

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

    Latest mention: Go, RabbitMQ and gRPC Clean Architecture microservice 💫👋 | dev.to | 2021-01-11

    Code for another gRPC methods and some tests you can find in th repository. For testing and mocking i can recomend testify and gomock.

  • GoConvey

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

  • ginkgo

    BDD Testing Framework for Go

    Latest mention: Autobucket Operator | dev.to | 2020-11-19

    As a big fan of automated testing, it’s comforting to learn that we can easily write tests for our controllers using envtest (which runs a local k8s control plane so we can run our tests against it), the Gingko testing framework and the Gomega matching/assertion library:

  • Gauge

    Light weight cross-platform test automation

  • go-cmp

    Package for comparing Go values in tests

  • Looking for Maintainer

    Selenium/Webdriver client for Go

  • gomega

    Ginkgo's Preferred Matcher Library

  • godog

    Cucumber for golang

  • goblin

    Minimal and Beautiful Go testing framework

  • baloo

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

  • testfixtures

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

  • gocheck

    Rich testing for the Go language

  • go-vcr

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

  • go-mutesting

    Mutation testing for Go source code

  • gnomock

    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 💻

  • gofight

    Testing API Handler written in Golang.

  • goc

    A Comprehensive Coverage Testing System for The Go Programming Language

  • frisby

    API testing framework inspired by frisby-js

  • go-carpet

    go-carpet - show test coverage in terminal for Go source files

  • charlatan

    Go Interface Mocking Tool

  • gotest.tools

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

  • endly

    End to end functional test and automation framework

  • cupaloy

    Simple Go snapshot testing

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-01-11.


What are some of the best open-source Testing Framework projects in Go? This list will help you:

Project Stars
1 Testify 12,373
2 GoConvey 6,143
3 ginkgo 4,463
4 Gauge 2,407
5 go-cmp 2,113
6 Looking for Maintainer 1,311
7 gomega 1,287
8 godog 1,244
9 goblin 747
10 baloo 698
11 testfixtures 628
12 gocheck 600
13 go-vcr 481
14 go-mutesting 378
15 gnomock 372
16 gofight 356
17 goc 272
18 frisby 264
19 go-carpet 211
20 charlatan 194
21 gotest.tools 189
22 endly 172
23 cupaloy 127