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: Show HN: Caffeine, minimum viable back end for prototyping | news.ycombinator.com | 2021-11-16

    Very cool. You could simplify the tests by using testify [0] assertions and possibly a test suite. Then it'd be easier to add additional test cases.

    [0] 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?

  • Scout APM

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo ginkgo

    BDD 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 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 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 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: BDD (Behavior-driven development) mit Go | dev.to | 2021-05-18
  • Nanos

    Run Linux Software Faster and Safer than Linux with Unikernels.

  • 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 goblin

    Minimal and Beautiful Go testing framework

  • 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 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 gocheck

    Rich testing for the Go language

  • GitHub repo GoAws

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

  • 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 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 embedded-postgres

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

  • GitHub repo frisby

    API testing framework inspired by frisby-js

  • GitHub repo gotest.tools

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

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-12-01.

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 14,865
2 GoConvey 6,822
3 ginkgo 5,306
4 Gauge 2,603
5 go-cmp 2,591
6 Looking for Maintainer 1,637
7 godog 1,507
8 gomega 1,506
9 is 1,272
10 goblin 818
11 go-vcr 791
12 testfixtures 719
13 baloo 718
14 gocheck 638
15 GoAws 635
16 gnomock 583
17 go-mutesting 490
18 goc 452
19 gofight 396
20 testza 309
21 embedded-postgres 307
22 frisby 269
23 gotest.tools 259
Find remote jobs at our new job board 99remotejobs.com. There are 32 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com