Go Testing

Open-source Go projects categorized as Testing

Top 23 Go Testing Projects

  1. Testify

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

    Project mention: 5 Golang Libraries You’ll Wish You Knew Sooner | dev.to | 2025-05-18

    Testify simplifies writing unit tests in Go. The standard testing package is fine, but Testify adds assertions, mocking, and suite support, making tests more readable and maintainable.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. learn-go-with-tests

    Learn Go with test-driven development

  4. Gor

    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.

  5. chromedp

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

    Project mention: Practical Ways to Generate PDFs in Go: Libraries, LaTeX, Pandoc, Chrome | dev.to | 2025-04-27

    chromedp lets you programmatically control Chrome.

  6. toxiproxy

    :alarm_clock: :fire: A TCP proxy to simulate network and system conditions for chaos and resiliency testing

    Project mention: Making Your Connection Bad | news.ycombinator.com | 2024-11-24
  7. keploy

    Unit, API & Integration Testing Agent for Developers. Generate tests, mocks/stubs for your APIs that actually work!

    Project mention: Keploy – Open-Source AI-Powered API, Integration, Unit Testing Agent Developers | news.ycombinator.com | 2025-05-08
  8. 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 🤷)

  9. SaaSHub

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

    SaaSHub logo
  10. GoConvey

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

  11. terratest

    Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.

    Project mention: Pulumi vs. Terraform: Choosing the Best Infrastructure as Code Solution | dev.to | 2025-02-10

    Terraform provides a built-in testing framework to validate your project. The testing framework supports both unit and integration tests. It handles unit tests by creating a deployment plan and running the tests against that plan. While Terraform's testing framework allows you to validate basic properties, you may need to write more advanced tests to verify your virtual machines are set up correctly. You can create advanced tests using open source testing tools like Terratest and Kitchen-Terraform.

  12. mockery

    A mock code autogenerator for Go (by vektra)

  13. go-grpc-middleware

    Golang gRPC Middlewares: interceptor chaining, auth, logging, retries and more.

  14. go-sqlmock

    Sql mock driver for golang to test database interactions

    Project mention: Princípios SOLID em GoLang - Dependency Inversion Principle (DIP) | dev.to | 2024-08-03
  15. rod

    A Chrome DevTools Protocol driver for web automation and scraping.

    Project mention: Show HN: Puremd-mcp – MCP server for reliably accessing web content | news.ycombinator.com | 2025-04-01

    nice, i've been using https://github.com/go-rod/rod or python playwright for this and doing the logic to clean the html into text. But this is nice 1 step solution.

  16. goss

    Quick and Easy server testing/validation

  17. syzkaller

    syzkaller is an unsupervised coverage-guided kernel fuzzer

  18. gotests

    Automatically generate Go test boilerplate from your source code.

  19. go-fuzz

    Randomized testing for Go

  20. realize

    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.

  21. go-cmp

    Package for comparing Go values in tests

  22. dockertest

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

  23. HTTPLab

    The interactive web server

  24. testcontainers-go

    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.

    Project mention: Implementing Chat History for AI Applications Using Azure Cosmos DB Go SDK | dev.to | 2025-03-11

    The sample application includes basic test cases for both Azure Cosmos DB chat history and the main application. It is worth highlighting the use of testcontainers-go to integrate the Azure Cosmos DB Linux-based emulator docker container.

  25. neosync

    Open Source Data Security Platform for Developers to Monitor and Detect PII, Anonymize Production Data and Sync it across environments.

    Project mention: PostgreSQL Anonymizer | news.ycombinator.com | 2025-01-17

    Just to jump in here -> We support RDS + more and you can self-host, Neosync.

    https://github.com/nucleuscloud/neosync

    (I'm one of the co-founders)

  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 discussion

Log in or Post with

Go Testing related posts

  • Crafting Go Testing Module: Step 4 - Goldy and Must

    1 project | dev.to | 16 May 2025
  • Crafting Testing Module: Step 3 - Testing the Testers

    1 project | dev.to | 14 Apr 2025
  • Cargo-mutants:zombie: Inject bugs and see if your tests catch them

    6 projects | news.ycombinator.com | 10 Apr 2025
  • lições aprendidas na construção de uma sdk financeira: onde termina o backend e começa o cliente?

    4 projects | dev.to | 11 Apr 2025
  • Crafting Go Testing Module: Step 2 - Core

    1 project | dev.to | 9 Apr 2025
  • Crafting Go Testing Module: Step 1 - Requirements

    1 project | dev.to | 7 Apr 2025
  • Show HN: Puremd-mcp – MCP server for reliably accessing web content

    3 projects | news.ycombinator.com | 1 Apr 2025
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 19 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

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

# Project Stars
1 Testify 24,583
2 learn-go-with-tests 22,813
3 Gor 18,917
4 chromedp 11,807
5 toxiproxy 11,244
6 keploy 9,639
7 ginkgo 8,646
8 GoConvey 8,354
9 terratest 7,657
10 mockery 6,575
11 go-grpc-middleware 6,506
12 go-sqlmock 6,350
13 rod 5,909
14 goss 5,736
15 syzkaller 5,663
16 gotests 5,014
17 go-fuzz 4,826
18 realize 4,454
19 go-cmp 4,397
20 dockertest 4,308
21 HTTPLab 4,078
22 testcontainers-go 4,041
23 neosync 3,857

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

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