Go Testing Frameworks

Open-source Go projects categorized as Testing Frameworks | Edit details

Top 23 Go Testing Framework Projects

  • GitHub repo Testify

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

    Project mention: How do you control behaviour in mocked interface ? | reddit.com/r/golang | 2022-01-21

    I’m a fan of https://github.com/stretchr/testify

  • GitHub repo GoConvey

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

    Project mention: Do you prefer go-convey over golang's t.Run? | reddit.com/r/golang | 2021-04-23

    For a generic usecase, do you see Go-convey adding any benefit over simple golang t.Run?

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • GitHub repo ginkgo

    A Modern Testing Framework for Go

    Project mention: Testza - A modern test framework with pretty output | reddit.com/r/golang | 2021-08-25

    What are people’s thoughts on testing frameworks? I’ve heard that most devs only use the testing package in the standard library and the testify package for assertions— I assume this is because Go is meant to be lightweight and scalable, and adding external dependencies basically goes against that. But I’ve also seen devs use packages like ginkgo to make tests more structured and readable. What do you guys think?

  • GitHub repo go-cmp

    Package for comparing Go values in tests

    Project mention: What annoys you about Go? | reddit.com/r/golang | 2021-10-26

    When I use functional arguments, I either prefix all of the options with the same prefix or put them in a dedicated package (like cmpopts) to help the IDE.

  • GitHub repo Gauge

    Light weight cross-platform test automation

    Project mention: 9 Of The Best Java Testing Frameworks For 2021 | dev.to | 2021-05-14

    Gauge is a Behavior Driven Java testing framework launched by ThoughtWorks.Inc. This is also one of the best Java Testing Frameworks, which allows software engineers to develop automated frameworks and speed up the software development procedure.

  • GitHub repo Looking for Maintainer

    Selenium/Webdriver client for Go (by tebeka)

    Project mention: Golang for Browser Automation | reddit.com/r/learnprogramming | 2021-06-25
  • GitHub repo godog

    Cucumber for golang

    Project mention: Behaviour Driven Development (BDD) boilerplate tests generator for Golang | reddit.com/r/golang | 2022-01-21

    Differences between gherkingen and godog are:

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo gomega

    Ginkgo's Preferred Matcher Library

    Project mention: Learning Go by examples: part 6 - Create a gRPC app in Go | dev.to | 2021-08-18

    Gomega is a Go library that allows you to make assertions. In our example, we check if what we got is null, not null, or equal to an exact value, but the gomega library is much richer than that.

  • GitHub repo is

    Professional lightweight testing mini-framework for Go.

    Project mention: What are the REST API reference projects that can be used as a guide in 2021? | reddit.com/r/golang | 2021-11-24

    However your point is valid. Check matryer/is for unit test writing. DATA-DOG/go-sqlmock to test database interactions.

  • GitHub repo go-vcr

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

    Project mention: What are you using for testing your IAC? | reddit.com/r/devops | 2021-12-01

    Terraform providers are tested this way (separate cloud account w/ create/destroy) paired with VCR to record and replay the HTTP requests.

  • GitHub repo goblin

    Minimal and Beautiful Go testing framework

  • GitHub repo testfixtures

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

    Project mention: Ask HN: What are some tools / libraries you built yourself? | news.ycombinator.com | 2021-05-16

    I built an alternative to Make written in Go that is simpler to use and cross-platform: https://taskfile.dev/

    Also, a library to write tests with databases for Go: https://github.com/go-testfixtures/testfixtures

  • GitHub repo baloo

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

  • GitHub repo GoAws

    AWS (SQS/SNS) Clone for Development testing (by p4tin)

  • GitHub repo gocheck

    Rich testing for the Go language

    Project mention: Go Fuzzing | news.ycombinator.com | 2022-01-01

    I think it is great in general. OTOH - nobody prohibits to use any third party library whoever wants to. Third party libraries also die like - https://github.com/go-check/check

  • GitHub repo 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 💻

    Project mention: How to mock DB for unit tests? | reddit.com/r/golang | 2021-02-08

    You could check out Gnomock (https://github.com/orlangure/gnomock). It offers a different approach than what you asked, but maybe it'll suit your use case. It allows to easily setup a real DB like postgres in a docker container and then delete ot when tests are done.

  • GitHub repo go-mutesting

    Mutation testing for Go source code

  • GitHub repo goc

    A Comprehensive Coverage Testing System for The Go Programming Language

  • GitHub repo gofight

    Testing API Handler written in Golang.

    Project mention: Http server request from within a Gofight test | reddit.com/r/golang | 2021-08-18

    probably better ask that question to the creator? https://github.com/appleboy/gofight

  • GitHub repo embedded-postgres

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

  • GitHub repo testza

    Full-featured test framework for Go! Assertions, mocking, input testing, output capturing, and much more! 🍕

    Project mention: Testza - A testing framework with pretty output, that aims for efficient, reliable and easy testing! | reddit.com/r/coolgithubprojects | 2021-11-01
  • GitHub repo gotest.tools

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

  • GitHub repo frisby

    API testing framework inspired by frisby-js

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 2022-01-21.

Go Testing Frameworks related posts

Index

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

Project Stars
1 Testify 15,220
2 GoConvey 6,930
3 ginkgo 5,488
4 go-cmp 2,659
5 Gauge 2,640
6 Looking for Maintainer 1,688
7 godog 1,544
8 gomega 1,543
9 is 1,313
10 go-vcr 843
11 goblin 826
12 testfixtures 732
13 baloo 718
14 GoAws 649
15 gocheck 643
16 gnomock 629
17 go-mutesting 501
18 goc 479
19 gofight 398
20 embedded-postgres 330
21 testza 312
22 gotest.tools 273
23 frisby 271
Find remote jobs at our new job board 99remotejobs.com. There are 29 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
OPS - Build and Run Open Source Unikernels
Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.
github.com/nanovms