Go Testing Frameworks

Open-source Go projects categorized as Testing Frameworks

Top 23 Go Testing Framework Projects

Testing Frameworks
  1. Testify

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

    Project mention: Building and Deploying a New API (Part 1) | dev.to | 2025-01-07

    nil is returned initially, as we're creating user_test.go and using Testify to create tests as we shape the behavior of PostUser. We don't have a DB wired up yet, so the responses will simply be hard-coded structs of what we expect the API to respond with for now to pass the tests.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. ginkgo

    A Modern Testing Framework for Go

    Project mention: Mastering Golang Debugging in Emacs | dev.to | 2024-11-29

    Debug both standard applications and Ginkgo tests (this is what I'm using at the moment 🤷)

  4. GoConvey

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

  5. go-cmp

    Package for comparing Go values in tests

  6. dockertest

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

  7. Gauge

    Light weight cross-platform test automation

  8. Looking for Maintainer

    Selenium/Webdriver client for Go (by tebeka)

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. godog

    Cucumber for golang

    Project mention: Quitting early for the win! | dev.to | 2024-12-13

    Quick side note - this is probably the subject of a whole other blog post but my current favourite way of testing CLI tools uses godog to write tests. It can be a little complex but I've found it supremely powerful. Here are some good examples of how I've approached it with layli and wait-for.

  11. gomega

    Ginkgo's Preferred Matcher Library

  12. is

    Professional lightweight testing mini-framework for Go.

  13. 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 💻

  14. go-vcr

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

    Project mention: Effortless HTTP Client Testing in Go | dev.to | 2024-07-11

    Now that you see the motivation behind VCR testing, let's dig deeper into how to implement it in Go using dnaeon/go-vcr.

  15. testfixtures

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

  16. embedded-postgres

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

    Project mention: I curate a daily newsletter with resources about Golang - Daily Golang. Here are the latest 6 issues of the newsletter | dev.to | 2024-08-19

    fergusstrange/embedded-postgres Embedded Postgres allows running a real Postgres database locally as part of another Go application or test, providing a simple way to include Postgres in your development environment.

  17. goblin

    Minimal and Beautiful Go testing framework

  18. goc

    A Comprehensive Coverage Testing System for The Go Programming Language

  19. GoAws

    AWS (SQS/SNS) Clone for Development testing

  20. baloo

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

  21. gocheck

    Rich testing for the Go language (by go-check)

  22. go-mutesting

    Mutation testing for Go source code

  23. gotest.tools

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

  24. go-testdeep

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

  25. gofight

    Testing API Handler written in Golang.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

Go Testing Frameworks discussion

Log in or Post with

Go Testing Frameworks related posts

  • Building and Deploying a New API (Part 1)

    3 projects | dev.to | 7 Jan 2025
  • Quitting early for the win!

    4 projects | dev.to | 13 Dec 2024
  • Go-DOM - 1st major milestone

    2 projects | dev.to | 17 Nov 2024
  • Functional Programming in Go

    2 projects | news.ycombinator.com | 8 Nov 2024
  • Leverage Your Test Suite With testcontainers-go & docker-compose

    4 projects | dev.to | 4 Oct 2024
  • Integration Tests in Go with Cucumber, Testcontainers, and HTTPMock

    4 projects | dev.to | 11 Sep 2024
  • I curate a daily newsletter with resources about Golang - Daily Golang. Here are the latest 6 issues of the newsletter

    3 projects | dev.to | 19 Aug 2024
  • A note from our sponsor - SaaSHub
    www.saashub.com | 19 Mar 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 Testify 24,218
2 ginkgo 8,560
3 GoConvey 8,322
4 go-cmp 4,332
5 dockertest 4,257
6 Gauge 3,022
7 Looking for Maintainer 2,574
8 godog 2,390
9 gomega 2,231
10 is 1,840
11 gnomock 1,424
12 go-vcr 1,287
13 testfixtures 1,138
14 embedded-postgres 913
15 goblin 887
16 goc 843
17 GoAws 802
18 baloo 778
19 gocheck 697
20 go-mutesting 653
21 gotest.tools 541
22 go-testdeep 441
23 gofight 440

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Go is
the 4th most popular programming language
based on number of references?