Skip to content

Test

📘 Resources

📕 Articles

📺 Videos

Libraries

  • stretchr/testify ⭐ - A toolkit with common assertions and mocks that plays nicely with the standard library
  • testcontainers/testcontainers-go - Testcontainers is a Golang library that providing a friendly API to run Docker container.
  • go-bdd/gobdd - BDD framework
  • shogo82148/actions-goveralls - Coveralls GitHub Action with Go integration powered by mattn/goveralls
  • smartystreets/goconvey ⭐ - Go testing in the browser. Integrates with go test. Write behavioral tests in Go.
  • onsi/ginkgo ⭐ - A Modern Testing Framework for Go
  • orlangure/gnomock - est your code without writing mocks with ephemeral Docker containers
  • gavv/httpexpect - End-to-end HTTP and REST API testing for Go.
  • h2non/baloo - Expressive end-to-end HTTP API testing made easy in Go
  • appleboy/gofight - Testing API Handler written in Golang.
  • buger/goreplay - 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.
  • cucumber/godog - Cucumber for golang
  • gruntwork-io/terratest - Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
  • cweill/gotests - Automatically generate Go test boilerplate from your source code.
  • dnaeon/go-vcr - Record and replay your HTTP interactions for fast, deterministic and accurate tests
  • brianvoe/gofakeit - Random fake data generator written in go
  • nhatthm/grpcmock - gRPC Test Utilities for Golang
  • fdaines/arch-go - Architecture checks for Go projects
  • VerifyTests/Verify.Go - Verify.Go is a snapshot tool for Go language that simplifies the assertion of complex data models and documents
  • six-ddc/plow - A high-performance HTTP benchmarking tool with real-time web UI and terminal displaying
  • myzhan/boomer - A better load generator for locust, written in golang.
  • smallnest/1m-go-tcp-server - benchmarks for implementation of servers which support 1 million connections
  • bradleyjkemp/cupaloy - Simple Go snapshot testing
  • gkampitakis/go-snaps - Jest-like snapshot testing in Golang 📸
  • efficientgo/e2e - Robust framework for running complex workload scenarios in isolation, using Go; for integration, e2e tests, benchmarks and more!
  • ory/dockertest - Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.
  • allaboutapps/integresql - IntegreSQL manages isolated PostgreSQL databases for your integration tests.
  • rubenv/pgtest - PostgreSQL test helper for Go
  • DATA-DOG/go-sqlmock - Sql mock driver for golang to test database interactions
  • golang/mock - GoMock is a mocking framework for the Go programming language
  • vektra/mockery - A mock code autogenerator for Golang
  • h2non/gock - HTTP traffic mocking and testing made easy in
  • go-testfixtures/testfixtures - Ruby on Rails like test fixtures for Go. Write tests against a real database
  • onsi/gomega - Ginkgo’s Preferred Matcher Library
  • dlespiau/kube-test-harness - Write Kubernetes integration tests in go
  • tokopedia/gripmock - gRPC Mock Server
  • flyingmutant/rapid - Rapid is a Go library for property-based testing that supports state machine (“stateful” or “model-based”) testing and fully automatic test case minimization (“shrinking”)
  • leanovate/gopter - GOlang Property TestER
  • khaiql/dbcleaner - Clean database for testing, inspired by database_cleaner for Ruby
  • hexops/autogold - Automatically update your Go tests
  • ovh/venom - Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc… ) and assertions
  • benweissmann/memongo - Easily run an in-memory MongoDB server for your Go unit tests
  • steinfletcher/apitest - A simple and extensible behavioural testing library for Go. You can use api test to simplify REST API, HTTP handler and e2e tests.
  • alicebob/miniredis/ - Pure Go Redis server for Go unittests
  • icrowley/fake - Fake data generator for Go (Golang)
  • jaswdr/faker - Ultimate fake data generator for Go with zero dependencies
  • MarvinJWendt/testza - Full-featured test framework for Go! Assertions, fuzzing, input testing, output capturing, and much more!
  • uber-go/mock - GoMock is a mocking framework for the Go programming language.
  • jarcoal/httpmock - HTTP mocking for Golang
  • go-faker/faker - Go (Golang) Fake Data Generator for Struct, previously

🚀 Samples

Back to top